Members
Set consent for a specific member
Set consent for a specific member based on their key. Note: Some consent types cannot be overridden — this method returns a 422 status code with a message when that happens.
put/members/{key}/consent
Request
- Base URLhttps://api.cyberimpact.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
keystring required
Can be either the member's email address or their numerical ID
Request body
Example request
{
"relationType": "active-clients",
"consentDate": "2022-01-01",
"consentProof": "Customer since 2015, see invoices"
}Response
The new consent attributes for the specified member
Example response
{
"consentType": "implied",
"relationType": "active-clients",
"consentDate": "2022-01-01 00:00:00.000",
"consentExpiration": "2024-01-01 00:00:00.000",
"consentProof": "Customer since 2015, see invoices"
}Changes
No recorded changes to this operation across all 1 revision of this API.