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.
"ConsentApproval Object"
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.
{
"target": {
"orgOwnerEmail": "string",
"orgId": "string"
},
"consentId": "string",
"source": {
"userId": "string"
},
"status": "string"
}
Target organization metadata
The unique identifier of the CONSENT.
Source organization metadata
status
The user is not authorized to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user is forbidden to use the API
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
Consent is not present.
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The request could not be processed due to a conflict
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/consents/{consentId}