curl --request POST \
--url https://api.hierarch.io/v1/client/edit/{company_slug}/{client_id}/ \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '{
"id": 123,
"profile_photo": "<string>",
"status": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>",
"home_phone": "<string>",
"work_phone": "<string>",
"country": "<string>",
"home_address": "<string>",
"work_address": "<string>",
"company_name": "<string>",
"company_website": "<string>",
"company_address": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedin": "<string>",
"skype": "<string>",
"whatsapp": "<string>",
"msteams": "<string>",
"slack": "<string>",
"discord": "<string>",
"last_update": "<string>",
"datetime": "<string>"
}'
{
"result": "<string>"
}
Edit client record
curl --request POST \
--url https://api.hierarch.io/v1/client/edit/{company_slug}/{client_id}/ \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '{
"id": 123,
"profile_photo": "<string>",
"status": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>",
"home_phone": "<string>",
"work_phone": "<string>",
"country": "<string>",
"home_address": "<string>",
"work_address": "<string>",
"company_name": "<string>",
"company_website": "<string>",
"company_address": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedin": "<string>",
"skype": "<string>",
"whatsapp": "<string>",
"msteams": "<string>",
"slack": "<string>",
"discord": "<string>",
"last_update": "<string>",
"datetime": "<string>"
}'
{
"result": "<string>"
}
API token provided to your company
Client details
The body is of type object
.
OK Response
The response is of type object
.
Was this page helpful?