Delete a social association
info
This operation requires that the user is the same or has the admin role.
HTTP Request
DELETE /api/v2/user/{id}/provider/
Parameters
| Name | In | Type | Required | Description | 
|---|---|---|---|---|
| id | query | integer | true | A unique integer value identifying this user | 
| ext_id | body | integer | true | A unique external id identifying the user | 
| provider | body | string | true | The external provider of the ext_id | 
Example Request
- JavaScript
- Bash
const inputBody = '{
  "ext_id":  "integer",
  "provider": "string"
}';
const headers = {
  'Authorization':'Bearer {access_token}',
  'Content-Type':'application/json',
  'Accept':'application/json'
};
fetch('/api/v2/user/{id}/provider/',
{
  method: 'DELETE',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
# You can also use wget
curl -X DELETE /api/v2/user/{id}/provider/ \
  -H 'Authorization: Bearer {access_token}'
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'
  -d '{
  "ext_id":  "integer",
  "provider": "string"
 }'
Responses
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 204 | No Content | Response status code | None |