Permission | Baack docs
Permission
Endpoints
CreatePOST/n/v1/permission/
Endpoint for managing permission grants on the platform.
Baack allocates the URN and returns it in the response.
Request body: Permission
Responses
- 201 Created
- returns Permission
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/permission/{urn}
Endpoint for managing permission grants on the platform.
Notes
- Use the search endpoint for searching for permissions based on their scopes.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Permission
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/permission/{urn}UpdatePUT/n/v1/permission/{urn}
Endpoint for managing permission grants on the platform.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Permission
Responses
- 202
- returns Permission
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/permission/{urn}
Endpoint for managing permission grants on the platform.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: PERMISSION
Webhook for updates related to permission grants
Listen for updates to the permissions in order to validate that grants are compliant. Baack uses fine grained permissions so permissions can be granted in a very scoped manner however changes often need to be audited. By listening to permission updates your integration can verify the integrity of your permission sets.
Permissions are often assigned at an owning company level which is inherited to child concepts.
See permission roles for creating role based permission sets.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| subjectScope | string | One of: |
| objectUrn | string (uuid) | Required on create. . |
| fromTimestamp | string (date-time) | |
| subjectUrn | string (uuid) | Required on create. . |
| objectScope | string | One of: |
| label | string | One of: Up to 255 characters. |
| toTimestamp | string (date-time) |
Used by: Search Item