POST
/
client
/
edit
/
{company_slug}
/
{client_id}
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>"
}

Authorizations

token
string
header
required

API token provided to your company

Path Parameters

company_slug
string
required

This is your company url

client_id
string
required

Client ID

Body

application/json
Client details
id
integer
required

Client ID

profile_photo
string

Client profile photo

status
string

Client status

first_name
string

Client first name

last_name
string

Client last name

email
string

Client email

phone
string

Client phone

home_phone
string

Client home phone

work_phone
string

Client work phone

country
string

Country

home_address
string

Client home address

work_address
string

Client work address

company_name
string

Client's company name

company_website
string

Client's company website

company_address
string

Client's company address

facebook
string

Facebook account

instagram
string

Instagram account

twitter
string

X/Twitter account

linkedin
string

Linkedin account

skype
string

Skype account

whatsapp
string

Whatsapp account

msteams
string

MS Teams account

slack
string

Slack account

discord
string

Discord account

last_update
string

Date and time the client was last updated

datetime
string

Date and time the client was created

Response

200
application/json
OK Response
result
string
required