Skip to content

Record acceptance of the current terms version (GDPR).

POST
/v1/account/consent
curl --request POST \
--url https://api.share2.us/v1/account/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "version": "example" }'

Appends a consent record (with IP + user-agent) and an audit event. The version must equal the current terms version. Requires an interactive login (a personal API token cannot accept terms).

Media typeapplication/json
object
version
required
string
Examplegenerated
{
"version": "example"
}

Consent recorded.

The submitted version is not current (stale_terms).

Standard error envelope.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{
"error": {
"code": "quota_exceeded"
}
}