upsert Entity Grant With Id

POST {{baseUrl}}/api/entity/:entityId/grant

Creates or updates an Entity Grant. This is when a User/Entity is granted permissions to an Entity.

Request Body

{"grant"=>{"entity"=>{"clientId"=>"<string>", "clientSecret"=>"<string>", "id"=>"<uuid>", "insertInstant"=>"<long>", "lastUpdateInstant"=>"<long>", "name"=>"<string>", "parentId"=>"<uuid>", "tenantId"=>"<uuid>", "type"=>{"id"=>"<uuid>", "insertInstant"=>"<long>", "jwtConfiguration"=>{"accessTokenKeyId"=>"<uuid>", "timeToLiveInSeconds"=>"<integer>", "enabled"=>"<boolean>"}, "lastUpdateInstant"=>"<long>", "name"=>"<string>", "permissions"=>[{"description"=>"<string>", "id"=>"<uuid>", "insertInstant"=>"<long>", "isDefault"=>"<boolean>", "lastUpdateInstant"=>"<long>", "name"=>"<string>"}, {"description"=>"<string>", "id"=>"<uuid>", "insertInstant"=>"<long>", "isDefault"=>"<boolean>", "lastUpdateInstant"=>"<long>", "name"=>"<string>"}]}}, "id"=>"<uuid>", "insertInstant"=>"<long>", "lastUpdateInstant"=>"<long>", "recipientEntityId"=>"<uuid>", "userId"=>"<uuid>"}}

HEADERS

KeyDatatypeRequiredDescription
X-FusionAuth-TenantIdstringThe unique Id of the tenant used to scope this API request. Only required when there is more than one tenant and the API key is not tenant-scoped.
Content-Typestring
Acceptstring

RESPONSES

status: OK

&quot;&quot;