- 19 Nov 2024
- 1 Minute to read
- Print
- DarkLight
Update consent type
- Updated on 19 Nov 2024
- 1 Minute to read
- Print
- DarkLight
The API endpoint `/messaging/client//consent/channel` is designed to update consent types for a specific notification channel, primarily for SMS communications. It requires several parameters, including a client ID, channel address (a mobile phone number), and channel type, which must be 'sms'. The request must include an API key in the header and a JSON document in the body specifying the consent type, which can be 'written', 'express', or 'stop'. Successful requests return a 200 OK status, confirming the phone number's removal from the customer or patient record. Other possible responses include 400 for invalid requests, 401 for unauthorized access, 404 for not found errors, 409 for conflicts, and 500 for server errors. Each response provides additional context regarding the outcome of the request, ensuring clarity for users interacting with the API.
This API is used to change the consent_types for a specific notification channel.
Contains the API key needed.
Client ID
Channel address - a mobile phone number.
Channel type - supported values are 'sms'.
A customer onboard JSON document
Identifies the consent update for the channel_address of the Customer or Patient.
OK - The phone number was successfully removed from the Customer or Patient record.
Identifies the client to which the consent is associated.
Contains the date and time when the Consent was created.
Contains the date and time when the Consent was last updated.
Identifies the channel type of the channel_addr field.
Contains the channel address.
Identifies the consent of the Customer or Patient.
Invalid request
Unauthorized
Not Found - The requested resource was not found. Please verify the route parameter.
Conflict - Indicates the request could not be processed. A common reason is when attempting to create a new Journey object, but the ID already exists in the system.
An unexpected server error occurred. The response body should contain additional information related to the server error. Please retry your request.