Api referenceEndpointsConsent
Revoke every category of a source
DELETE
The same as a PUT with granted empty.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
id*stringFormat
uuidprovider*stringConnector slug, see GET /v1/providers.
evidence?stringWhat backs the revocation, at most 500 characters.
Length
length <= 500The user's consent for this source after the change.
application/json- response
provider*stringcategories*array<>updated_at*stringFormat
date-timecurl -X DELETE 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/consents/withings' \ -H 'Authorization: Bearer ohs_sk_...'{ "provider": "string", "categories": [ { "category": "activity", "granted": true, "granted_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z" } ], "updated_at": "2019-08-24T14:15:22Z"}