Skip to Content
REST APIPermission Shares API

Permission Shares API

List permission shares owned by an account.

PathMethodProtected
/v1/accounts/{account_id}/permission-sharesGETYes

Example Response JSON

{ "values": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } } ] }

Create a new permission share owned by an account.

PathMethodProtected
/v1/accounts/{account_id}/permission-sharesPOSTYes

Example Request JSON

{ "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

List permission shares targeting an account.

PathMethodProtected
/v1/accounts/{account_id}/received-permission-sharesGETYes

Example Response JSON

{ "values": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } } ] }

Get permission share by id.

PathMethodProtected
/v1/permission-shares/{permission_share_id}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Delete permission share.

PathMethodProtected
/v1/permission-shares/{permission_share_id}DELETEYes

Query Parameters

NameTypeRequiredDescription
current_revisionintegerYes-

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Update permission share data.

PathMethodProtected
/v1/permission-shares/{permission_share_id}PATCHYes

Example Request JSON

{ "currentRevision": 0, "name": "string", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Get permission share by owner account and name.

PathMethodProtected
/v1/accounts/{account_id}/permission-shares/{name}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "ownerAccountId": "2936251c-eefb-44ec-9d94-a810fc3cf72b", "targetAccountId": "8fd1f7fe-04c3-44ae-9b47-4bf514a70f89", "name": "string", "currentCardId": "083e093b-09ef-415f-b474-4991debca8da", "data": { "lowerPositive": [ "string" ], "lowerNegative": [ "string" ], "upperPositive": [ "string" ], "upperNegative": [ "string" ] } }

Permission Shares API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"code":"string","errors":["string"]}
401Unauthorized request{"code":"string","error":"string"}
403Forbidden Request{"code":"string","error":"string"}
404Entity not found{"code":"string","error":"string"}
409{"code":"string","error":"string"}
422Limits of the plan exceeded{"code":"string","error":"string"}
500Internal server error{"code":"string","error":"string"}