curl --request GET \
--url https://api.hyra.io/staff/assignments/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>'
{
"assigned": [
{
"active": true,
"_id": "<string>",
"target": 123,
"target_type": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"completed": 123,
"due": "2023-11-07T05:31:56Z"
}
],
"history": [
{
"_id": "<string>",
"week_start": "2023-11-07T05:31:56Z",
"week_end": "2023-11-07T05:31:56Z",
"week_number": 123,
"year": 123,
"assignment": "<string>",
"assignment_name": "<string>",
"marked_at": "2023-11-07T05:31:56Z",
"passed": true,
"target": 123,
"target_type": "<string>",
"achieved": 123,
"timeoff": true
}
]
}
Retrieve assignment information for a staff member
curl --request GET \
--url https://api.hyra.io/staff/assignments/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>'
{
"assigned": [
{
"active": true,
"_id": "<string>",
"target": 123,
"target_type": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"completed": 123,
"due": "2023-11-07T05:31:56Z"
}
],
"history": [
{
"_id": "<string>",
"week_start": "2023-11-07T05:31:56Z",
"week_end": "2023-11-07T05:31:56Z",
"week_number": 123,
"year": 123,
"assignment": "<string>",
"assignment_name": "<string>",
"marked_at": "2023-11-07T05:31:56Z",
"passed": true,
"target": 123,
"target_type": "<string>",
"achieved": 123,
"timeoff": true
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.