Download OpenAPI specification:
List consents a user has granted to a given service.
| serviceId required | string^[\w\-\.]{3,128}$ Unique identifier for a service. |
| userId required | string^[\w\-\.]{3,128}$ Unique identifier for a user. |
| limit | integer 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",
- "consentType": "string",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}
], - "nextPageToken": "string"
}Create a user Consent for a given service.
| serviceId required | string^[\w\-\.]{3,128}$ Unique identifier for a service. |
| userId required | string^[\w\-\.]{3,128}$ Unique identifier for a user. |
| status required | string (ConsentStatus) Enum: "ACTIVE" "EXPIRED" "REVOKED" Current status of a Consent. |
| consentType | string^[\w\-\.]{3,128}$ Consent type. |
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",
- "consentType": "string",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}{- "consentId": "string"
}Retrieve a user Consent for a given service.
| consentId required | string^[\w\-\.]{3,128}$ Unique identifier for a Consent. |
| serviceId required | string^[\w\-\.]{3,128}$ Unique identifier for a service. |
| userId required | string^[\w\-\.]{3,128}$ Unique identifier for a user. |
{- "data": {
- "consentId": "string",
- "consentVersion": 0,
- "userId": "string",
- "serviceId": "string",
- "status": "ACTIVE",
- "consentType": "string",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}
}Update a user Consent for a given service.
| consentId required | string^[\w\-\.]{3,128}$ Unique identifier for a Consent. |
| serviceId required | string^[\w\-\.]{3,128}$ Unique identifier for a service. |
| userId required | string^[\w\-\.]{3,128}$ Unique identifier for a user. |
| consentVersion required | integer Updated consent version, used to conditionally write only if the stored data has the prior version, to protect against race conditions or writing stale data. |
| status | string (ConsentStatus) Enum: "ACTIVE" "EXPIRED" "REVOKED" Current status of a Consent. |
| consentType | string^[\w\-\.]{3,128}$ Consent type. |
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. |
{- "consentVersion": 0,
- "status": "ACTIVE",
- "consentType": "string",
- "consentData": {
- "property1": "string",
- "property2": "string"
}, - "expiryTime": "2019-08-24T14:15:22Z"
}{- "message": "string"
}