POST
/
staff
/
logbook
/
{workspaceId}
/
{staffId}
curl --request POST \
  --url https://api.hyra.io/staff/logbook/{workspaceId}/{staffId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiry": "2023-11-07T05:31:56Z",
  "message": "<string>",
  "type": "promotion"
}'
{
  "_id": "<string>",
  "author": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "expiration": "<string>",
  "expired": true,
  "files": [
    "<string>"
  ],
  "message": "<string>",
  "staff_id": "<string>",
  "type": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "videos": [
    "<string>"
  ],
  "workspace": "<string>"
}

There is a more advanced version of this endpoint that allows for uploading files and videos.

However, this API uses multipart encoding instead of JSON, so it has been omitted from this documentation and the Swagger reference.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
staffId
string
required

Body

application/json
expiry
string
message
string
required
type
enum<string>
required
Available options:
promotion,
note,
demotion,
warning,
termination,
suspension,
warning revocation,
reminder,
deprovisioned

Response

200 - application/json
_id
string
required
author
string
required
createdAt
string
required
expiration
string
expired
boolean
files
string[]
required
message
string
required
staff_id
string
required
type
string
required
updatedAt
string
required
videos
string[]
required
workspace
string
required