Update contact
curl --request PUT \
--url https://staging-api.usetyms.com/v1/adam/contacts/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>",
"type": "<string>"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/contacts/{uuid}"
payload = {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>",
"type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '<string>',
phone: '<string>',
address: '<string>',
type: '<string>'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/contacts/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Contact updated successfully",
"data": {
"uuid": "aa0e8400-e29b-41d4-a716-446655440006",
"name": "John Smith"
}
}Contacts
Update contact
PUT
/
contacts
/
{uuid}
Update contact
curl --request PUT \
--url https://staging-api.usetyms.com/v1/adam/contacts/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>",
"type": "<string>"
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/contacts/{uuid}"
payload = {
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"address": "<string>",
"type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '<string>',
phone: '<string>',
address: '<string>',
type: '<string>'
})
};
fetch('https://staging-api.usetyms.com/v1/adam/contacts/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Contact updated successfully",
"data": {
"uuid": "aa0e8400-e29b-41d4-a716-446655440006",
"name": "John Smith"
}
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Path Parameters
Response
200 - application/json
Contact updated