Replace {subdomain}
in the endpoint below with your Vitally subdomain.
You can find your subdomain in the URL used to log into Vitally (i.e., https://yoursubdomain.vitally.io
Unlink a user from an account
POST
https://{subdomain}.api.vitally.io/analytics/v1/unlink
This endpoint will unlink the user specified by userId
from the account specified by accountId
in Vitally.
Headers
Name | Type | Description |
Content-Type* | string | Set to |
Authorization* | string | Set to |
Request Body
Name | Type | Description |
userId* | string | The unique ID of the user in your system |
accountId* | string | The unique ID of the account in your system |
timestamp | string | Required if |
messageId | string | Required if |
200 When your message has been validated and accepted by the API you'll receive
{"message":"Success."}
Example
An example curl request describing a Vitally user would look like:
curl -X POST https://{subdomain}.api.vitally.io/analytics/v1/unlink \
-H "Authorization: Basic [your token]" \
-H "Content-Type: application/json" \
-d '{
"userId": "32",
"accountId": "123456",
"messageId": "7ac1c682-a54b-4d0d-9f56-d6d3618f4915",
"timestamp": "2018-05-15T12:31:12.123Z"
}'