Skip to main content

Section API

Create and manage table or row sections.

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 section listGET/tables/section/list/organization/{{organization_sid}}/list/?table__sid={{table_sid}}
Create sectionPOST/tables/section/list/organization/{{organization_sid}}/list/?table__sid={{table_sid}}
Get section detailGET/tables/section/detail/{{section_sid}}/
Update sectionPATCH/tables/section/detail/{{section_sid}}/
Delete sectionDELETE/tables/section/detail/{{section_sid}}/
Get section templatesGET/tables/section/templates/

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: name, ref, sid, widget, description, price, is_required, is_archived, row, table, order, change_permission, verbose_name

Detail response: sid, table, row, name, ref, description, description_placement, widget, is_required, data, order, comments, completed_by, completed_at, is_archived, date_updated, date_created, updated_by, change_permission, help_text, verbose_name

Write serializer: sid, table, row, widget, name, ref, description, description_placement, order, is_required, data, completed_by, completed_at, is_archived, 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": [
{
"name": null,
"ref": null,
"sid": null,
"widget": null,
"description": null,
"price": null,
"is_required": null,
"is_archived": null,
"row": null,
"table": null,
"order": 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,
"table": null,
"row": null,
"name": null,
"ref": null,
"description": null,
"description_placement": null,
"widget": null,
"is_required": null,
"data": null,
"order": null,
"comments": null,
"completed_by": null,
"completed_at": null,
"is_archived": null,
"date_updated": null,
"date_created": null,
"updated_by": null,
"change_permission": null,
"help_text": null,
"verbose_name": null
}

Example request​

curl --request GET \
--url 'https://www.labii.dev/tables/section/list/organization/{{organization_sid}}/list/?table__sid={{table_sid}}' \
--header 'Authorization: Bearer <api_key>'