Approve Consent Using POST
Approve or reject the consent.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ❌ |
Organization Owner | ✔️ | ❌ |
Unique identifier (GUID) of the organization.
The unique identifier of the CONSENT.
Action taken by Customer on consent request. It can have only two values APPROVE|REJECT.
{
"expiry": "2004-07-25T06:18:20.541Z"
}
The timestamp the consent expires at (provided in ISO 8601 format, yyyy-MM-dd'T'HH:mm:ss.SSSXXX e.g. 2004-07-25T06:18:20.541Z).
Valid consent approval contract.
"ConsentDto Object"
The unique identifier of the CONSENT.
Source organization metadata
status
Target organization metadata
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
Consent is not present.
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The request could not be processed due to a conflict
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/consents/{consentId}