Update branch (partial)
curl --request PATCH \
--url https://staging-api.usetyms.com/v1/adam/branches/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Lagos HQ",
"address": "12 Adeola Odeku, Victoria Island",
"state": "Lagos",
"country": "NG",
"phone": "+2348011111111",
"email": "lagos@acme.example"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/branches/{uuid}"
payload = {
"name": "Lagos HQ",
"address": "12 Adeola Odeku, Victoria Island",
"state": "Lagos",
"country": "NG",
"phone": "+2348011111111",
"email": "lagos@acme.example"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Lagos HQ',
address: '12 Adeola Odeku, Victoria Island',
state: 'Lagos',
country: 'NG',
phone: '+2348011111111',
email: 'lagos@acme.example'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/branches/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "<string>",
"data": "<unknown>",
"meta": {}
}{
"status": "failed",
"message": "<string>"
}{
"status": "failed",
"message": "<string>"
}Branches
Update branch (partial)
PATCH
/
branches
/
{uuid}
Update branch (partial)
curl --request PATCH \
--url https://staging-api.usetyms.com/v1/adam/branches/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Lagos HQ",
"address": "12 Adeola Odeku, Victoria Island",
"state": "Lagos",
"country": "NG",
"phone": "+2348011111111",
"email": "lagos@acme.example"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/branches/{uuid}"
payload = {
"name": "Lagos HQ",
"address": "12 Adeola Odeku, Victoria Island",
"state": "Lagos",
"country": "NG",
"phone": "+2348011111111",
"email": "lagos@acme.example"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Lagos HQ',
address: '12 Adeola Odeku, Victoria Island',
state: 'Lagos',
country: 'NG',
phone: '+2348011111111',
email: 'lagos@acme.example'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/branches/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "<string>",
"data": "<unknown>",
"meta": {}
}{
"status": "failed",
"message": "<string>"
}{
"status": "failed",
"message": "<string>"
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Path Parameters
Branch uuid.
Body
application/json
Branch name.
Street address.
State or region.
Country code.
Base64-encoded logo when overriding branding.
When true, uses logo instead of the business logo on branch documents.
Response
Branch updated