Reassign Contact Owner
Assign or clear the owner of a contact.
Requires the contacts:write scope on the API key.
PATCH
/
v1
/
contacts
/
{contact_id}
/
owner
Reassign Contact Owner
curl --request PATCH \
--url https://api.topo.io/v1/contacts/{contact_id}/owner \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({owner_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.topo.io/v1/contacts/{contact_id}/owner', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/contacts/{contact_id}/owner"
payload = { "owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer API key issued from Settings → Developers.
Path Parameters
ID of the contact.
Body
application/json
Reassign Contact Owner payload
User to assign as owner. Pass null to clear the owner.
Response
204
Successful Response
Was this page helpful?
⌘I
Reassign Contact Owner
curl --request PATCH \
--url https://api.topo.io/v1/contacts/{contact_id}/owner \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({owner_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.topo.io/v1/contacts/{contact_id}/owner', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/contacts/{contact_id}/owner"
payload = { "owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)