Releasesv0.1.0
Api referenceEndpointsConsent

Revoke every category of a source

DELETE
/v1/users/{id}/consents/{provider}

The same as a PUT with granted empty.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

id*string
Formatuuid
provider*string

Connector slug, see GET /v1/providers.

Query Parameters

evidence?string

What backs the revocation, at most 500 characters.

Lengthlength <= 500

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The user's consent for this source after the change.

application/json
  1. response
provider*string
categories*array<>
updated_at*string
Formatdate-time
curl -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"}
Edit on GitHub