Create a policy
Creates a policy. It applies at the gateway from the next request. See Policies and Guards.
The response is the stored row: it has createdByUserId and no owner or lastEditedBy. Those two fields appear on GET only.
Send an Idempotency-Key header to make retries safe. Replays are cached in memory for 24 hours, so treat it as best effort.
Required permission: policies:write
Authorizations
An Igris API key. It acts with the current role and permission overrides of the member who created it.
Headers
Any unique string. A repeat with the same key returns the first response.
Body
Response
The stored policy.
The stored policy row, as returned by POST and PATCH. It has createdByUserId and updatedByUserId instead of owner and lastEditedBy.