POST
/
personnel
/
edit
/
{company_slug}
/
{personnel_id}
/
curl --request POST \
  --url https://api.hierarch.io/v1/personnel/edit/{company_slug}/{personnel_id}/ \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '{
  "id": 123,
  "role_name": "<string>",
  "profile_photo": "<string>",
  "status": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "country": "<string>",
  "home_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

personnel_id
string
required

Personnel ID

Body

application/json

Personnel details

The body is of type object.

Response

200
application/json

OK Response

The response is of type object.