Skip to content

Resource creation when ID is not yet known #329

@krotscheck

Description

@krotscheck

The Section 5.2 marks the id as required, however there are situations in which an ID is not yet known. How might I construct a request to create a resource? Should I attempt to pre-generate the ID before making the policy request, or make a request with an optional ID?

{
  "subject": {
    "type": "account",
    "id": "12345678-aaaa-bbbb-cccc-1234567890ab"
  },
  "action": {
    "name": "create"
  },
  "resource": {
    "type": "home_listing",
    "id": null | "pre-generated" // should this be optional?
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions