Download OpenAPI specification:Download
List consents a user has granted to a given service.
| serviceId required | string Unique identifier for a service. |
| userId required | string Unique identifier for a user. |
| limit | number Optional. Maximum number of Consents to return in a single response. |
| pageToken | string Optional. The nextPageToken returned from the previous list request. |
{- "data": [
- {
- "consentId": "string",
- "consentVersion": 0,
- "userId": "string",
- "serviceId": "string",
- "status": "ACTIVE",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}
], - "nextPageToken": "string"
}Create a user Consent for a given service.
| serviceId required | string Unique identifier for a service. |
| userId required | string Unique identifier for a user. |
| status required | string (ConsentStatus) Enum: "ACTIVE" "EXPIRED" "REVOKED" Current status of a Consent. |
object (ConsentData) <= 32 properties Consent data represented by string key-value pairs. Keys must be between 1-64 characters long, values must be between 1-256 characters long, and up to 32 key-value pairs may be provided. | |
| expiryTime | string <date-time> Time when the Consent automatically expires, using the ISO 8601 format. |
{- "status": "ACTIVE",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}Retrieve a user Consent for a given service.
| consentId required | string Unique identifier for a Consent. |
| serviceId required | string Unique identifier for a service. |
| userId required | string Unique identifier for a user. |
{- "data": {
- "consentId": "string",
- "consentVersion": 0,
- "userId": "string",
- "serviceId": "string",
- "status": "ACTIVE",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}
}Update a user Consent for a given service.
| consentId required | string Unique identifier for a Consent. |
| serviceId required | string Unique identifier for a service. |
| userId required | string Unique identifier for a user. |
| status | string (ConsentStatus) Enum: "ACTIVE" "EXPIRED" "REVOKED" Current status of a Consent. |
object (ConsentData) <= 32 properties Consent data represented by string key-value pairs. Keys must be between 1-64 characters long, values must be between 1-256 characters long, and up to 32 key-value pairs may be provided. | |
| expiryTime | string <date-time> Time when the Consent automatically expires, using the ISO 8601 format. |
{- "status": "ACTIVE",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}