Skip to main content

Personnel API

Create, retrieve, and update personnel in an organization.

All paths are relative to https://www.labii.dev and require bearer authentication unless noted otherwise. Replace each placeholder with an identifier from your Labii environment.

Endpoints​

OperationMethodPath
Get personnel listGET/organizations/personnel/list/organization/{{organization_sid}}/list/
Create personnelPOST/organizations/personnel/list/organization/{{organization_sid}}/list/
Get personnel detailGET/organizations/personnel/detail/{{personnel_sid}}/
Update personnelPATCH/organizations/personnel/detail/{{personnel_sid}}/

The final URL segment on list endpoints selects the response serializer. The examples use list; supported endpoints can also expose representations such as name or detail.

Serializer fields​

List response item: sid, name, email, title, is_administrator, date_start, date_end, change_permission, verbose_name

Detail response: sid, user__sid, name, email, first_name, last_name, title, date_start, date_end, is_administrator, should_receive_mention_notification, should_receive_notification_email, date_administrator_training_video_watched, date_user_training_video_watched, metadata, calendar, teams, permissions, certifications, status, is_archived, updated_by, date_updated, change_permission, help_text, verbose_name

Write serializer: sid, organization, user, title, date_start, date_end, is_administrator, is_archived, metadata, calendar, should_receive_mention_notification, should_receive_notification_email, date_administrator_training_video_watched, date_user_training_video_watched, updated_by, date_updated, date_created

The write serializer is the backend validation schema. The view may populate identity, parent, and audit fields from the URL or authenticated user, and may disallow fields for a particular operation.

List response JSON​

The values below are placeholders that show the exact keys returned by the current list serializer. They do not indicate that every field is nullable.

{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 1,
"next": null,
"previous": null,
"add_permission": false,
"results": [
{
"sid": null,
"name": null,
"email": null,
"title": null,
"is_administrator": null,
"date_start": null,
"date_end": null,
"change_permission": null,
"verbose_name": null
}
]
}

Detail response JSON​

The values below are placeholders that show the exact keys returned by the current detail serializer. Nested relationship and metadata values depend on the resource.

{
"sid": null,
"user__sid": null,
"name": null,
"email": null,
"first_name": null,
"last_name": null,
"title": null,
"date_start": null,
"date_end": null,
"is_administrator": null,
"should_receive_mention_notification": null,
"should_receive_notification_email": null,
"date_administrator_training_video_watched": null,
"date_user_training_video_watched": null,
"metadata": null,
"calendar": null,
"teams": null,
"permissions": null,
"certifications": null,
"status": null,
"is_archived": null,
"updated_by": null,
"date_updated": null,
"change_permission": null,
"help_text": null,
"verbose_name": null
}

Example request​

curl --request GET \
--url 'https://www.labii.dev/organizations/personnel/list/organization/{{organization_sid}}/list/' \
--header 'Authorization: Bearer <api_key>'