Skip to main content
PATCH
Change selected resource access

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

if-match
string

Required current sharing ETag from an access response or creation receipt.

Path Parameters

resource
string
required

Resource identifier. Currently supported: records:<type>:<UUID>.

Maximum string length: 256
Pattern: ^[a-z][a-z0-9_-]*:[A-Za-z0-9][A-Za-z0-9:_-]*$

Body

application/json
set
object

Add or replace these explicit reader/editor grants. Unlisted grants stay unchanged; the owner cannot be changed. Principals: user:<positive numeric ID>, group:<UUID>, mc:<UUID>:member, mc:<UUID>:editor or mc:<UUID>:manager; UUIDs must be lowercase. Access writes require users remaining in the resulting list to be active organization members, and remaining groups and Mission Controls to be visible to the caller. member includes all Mission Control members; editor and manager select those exact tiers.

remove
string[]

Remove these explicit grants; absent grants are unchanged. The owner cannot be removed. Principals: user:<positive numeric ID>, group:<UUID>, mc:<UUID>:member, mc:<UUID>:editor or mc:<UUID>:manager; UUIDs must be lowercase. Access writes require users remaining in the resulting list to be active organization members, and remaining groups and Mission Controls to be visible to the caller. member includes all Mission Control members; editor and manager select those exact tiers.

Maximum array length: 100
Pattern: ^(?:user:[1-9][0-9]*|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|mc:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(?:member|editor|manager))$
typeAccess
enum<string> | null

For records, limits inherited record-type access to reader or editor; null disables that inheritance. It never increases a principal’s record-type role. This does not change the record type shares. Organization administrator permissions still apply. Omit to leave inheritance unchanged.

Available options:
reader,
editor,
null

Response

Complete applied access list. Unchanged access retains its ETag.

access
object
required

Map up to 100 principals to reader, editor or owner. Exactly one user must be owner. Principals: user:<positive numeric ID>, group:<UUID>, mc:<UUID>:member, mc:<UUID>:editor or mc:<UUID>:manager; UUIDs must be lowercase. Access writes require users remaining in the resulting list to be active organization members, and remaining groups and Mission Controls to be visible to the caller. member includes all Mission Control members; editor and manager select those exact tiers.

typeAccess
enum<string> | null
required

For records, limits inherited record-type access to reader or editor; null disables that inheritance. It never increases a principal’s record-type role. This does not change the record type shares. Organization administrator permissions still apply.

Available options:
reader,
editor,
null
resource
string
required
availableRoles
enum<string>[]
required
Available options:
reader,
editor,
owner
accessEtag
string
required

Quoted sharing revision for If-Match on Access PUT/PATCH. Not the record content ETag.

Pattern: ^"[0-9a-f]{64}"$