Reassign Account Owner
Assign or clear the owner of an account.
Requires the accounts:write scope on the API key.
PATCH
/
v1
/
accounts
/
{account_id}
/
owner
Reassign Account Owner
curl --request PATCH \
--url https://api.topo.io/v1/accounts/{account_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/accounts/{account_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/accounts/{account_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 account.
Body
application/json
Reassign Account Owner payload
User to assign as owner. Pass null to clear the owner.
Response
204
Successful Response
Was this page helpful?
⌘I
Reassign Account Owner
curl --request PATCH \
--url https://api.topo.io/v1/accounts/{account_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/accounts/{account_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/accounts/{account_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)