Put expertise for employee
Put expertise for employee
Headers
-
Unique identifier to allow referencing a particular transaction or event chain
Minimum length is
1.
PUT
/employees/{employeeId}/offices/{officeId}/expertise
curl \
--request PUT 'https://api.development.pexipengage.com/enterprises/acme/employees/123/offices/123/expertise' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
--header "X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002" \
--data '[{"subjectId":"123","rank":42.0}]'
Request examples
# Headers
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002
# Payload
[
{
"subjectId": "123",
"rank": 42.0
}
]
Response examples (200)
{
"data": [
{
"rank": 42,
"meetingTypes": [
"OFFICE"
],
"employee": {
"id": "123"
},
"subject": {
"id": "123"
},
"office": {
"id": "123"
}
}
]
}
Response examples (404)
{
"errors": [
{
"message": "string",
"code": "string",
"type": "string",
"statusCode": "string"
}
]
}
Response examples (422)
{
"errors": [
{
"message": "string",
"code": "string",
"type": "string",
"statusCode": "string",
"arguments": {}
}
]
}