Accept a permission for an entity
Endpoint ID: | 2106 | |||||||
Method: | POST | |||||||
URL: | /permissions/entity/id/{entityID}/permission/{permissionID} /permissions/entity/ext-key/{ext-key}/{ext-type}/permission/{permissionID} | |||||||
entityID | dialogportal™ master key that uniquely identifies the entity | |||||||
ext-key | External key that uniquely identifies the entity | |||||||
ext-type | Type of external key | |||||||
permissionID | A GUID string identifier for the permission | |||||||
Request body: | JSON data containing the permission acceptance
{ "sourceID": 234 } | |||||||
Response body: | { "isActive": true, "isWithdrawn": false, "permissionID": 987, "acceptance": { "timestamp": "utc timestamp", "sourceID": 123 } } | |||||||
Status codes: | 201 | The permission was accepted | ||||||
303 | This permission has already been accepted by this entity | |||||||
400 | The permission could not be accepted, because it is inactive, or due to an invalid sourceID | |||||||
404 | The entity or permission were not found. The following sub codes may be returned:
| |||||||
412 | The contract does not allow access to this permission, or allow this acceptance source |