Delete contact
curl --request DELETE \
--url https://api.example.com/api/v1/user/contacts/{contact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/user/contacts/{contact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/user/contacts/{contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}User
Delete contact
Delete a contact.
DELETE
/
api
/
v1
/
user
/
contacts
/
{contact_id}
Delete contact
curl --request DELETE \
--url https://api.example.com/api/v1/user/contacts/{contact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/user/contacts/{contact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/user/contacts/{contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?