Update admin away state
PATCH/v2/admins/{id}/away
Updates an admin away state. awayReasonId uses a stable managed-reason ID. Omit it to preserve the current reason, or send null to clear the reason.
Update admin away state
curl https://do.featurebase.app/v2/admins/$ID/away \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $FEATUREBASE_API_KEY" \
-d '{
"enabled": true
}'{
"adminId": "adminId",
"automatic": true,
"away": true,
"changedAt": "2019-12-27T18:11:19.117Z",
"lastActiveAt": "2019-12-27T18:11:19.117Z",
"object": "admin_availability",
"reason": {
"id": "id",
"label": "label"
},
"reassignReplies": true
}Returns Examples
{
"adminId": "adminId",
"automatic": true,
"away": true,
"changedAt": "2019-12-27T18:11:19.117Z",
"lastActiveAt": "2019-12-27T18:11:19.117Z",
"object": "admin_availability",
"reason": {
"id": "id",
"label": "label"
},
"reassignReplies": true
}