Organization API
Retrieve and update Labii organizations.
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
| Operation | Method | Path |
|---|---|---|
| Get organization list | GET | /organizations/organization/list/user/{{user_sid}}/list/ |
| Get organization detail | GET | /organizations/organization/detail/{{organization_sid}}/ |
| Update organization | PATCH | /organizations/organization/detail/{{organization_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, username, description, logo_icon, logo_wordmark, is_academic, plan, change_permission
Detail response: sid, name, username, description, language, logo_icon, logo_wordmark, navbar_background_color, navbar_text_color, home_message, print_header, print_footer, name_format, workspaces_display_name, plan, period_end, enable_antivirus_scan, enable_password_expiration, password_expiration_days, should_enable_mfa, session_timeout_minutes, should_use_custom_email_domain, email_template, wecom_corp_id, wecom_corp_secret, wecom_agent_id, metadata, credits, application_quota, table_quota_per_application, is_academic, close_account, update_reference, updated_by, date_updated, date_created, personnel, is_archived, help_text, verbose_name, change_permission
Write serializer: sid, name, username, description, language, logo_icon, logo_wordmark, navbar_background_color, navbar_text_color, home_message, print_header, print_footer, name_format, workspaces_display_name, plan, is_academic, metadata, should_use_custom_email_domain, email_template, wecom_corp_id, wecom_corp_secret, wecom_agent_id, enable_antivirus_scan, enable_password_expiration, password_expiration_days, should_enable_mfa, session_timeout_minutes, 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,
"username": null,
"description": null,
"logo_icon": null,
"logo_wordmark": null,
"is_academic": null,
"plan": null,
"change_permission": 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,
"name": null,
"username": null,
"description": null,
"language": null,
"logo_icon": null,
"logo_wordmark": null,
"navbar_background_color": null,
"navbar_text_color": null,
"home_message": null,
"print_header": null,
"print_footer": null,
"name_format": null,
"workspaces_display_name": null,
"plan": null,
"period_end": null,
"enable_antivirus_scan": null,
"enable_password_expiration": null,
"password_expiration_days": null,
"should_enable_mfa": null,
"session_timeout_minutes": null,
"should_use_custom_email_domain": null,
"email_template": null,
"wecom_corp_id": null,
"wecom_corp_secret": null,
"wecom_agent_id": null,
"metadata": null,
"credits": null,
"application_quota": null,
"table_quota_per_application": null,
"is_academic": null,
"close_account": null,
"update_reference": null,
"updated_by": null,
"date_updated": null,
"date_created": null,
"personnel": null,
"is_archived": null,
"help_text": null,
"verbose_name": null,
"change_permission": null
}
Example request
curl --request GET \
--url 'https://www.labii.dev/organizations/organization/list/user/{{user_sid}}/list/' \
--header 'Authorization: Bearer <api_key>'