» Labour POST API Documentation

Create Labour: /labours

POST
https://dev-api.exsited.com/api/v3/labours
Try It Out
Purpose

This endpoint is used to create a new labour resource in the system. It allows defining core labour details, associating the labour with an existing labour profile, configuring custom attributes, and setting custom availability schedules that determine when the labour is available for assignment.

Use Case

• Creating a new labour resource for workforce management.
• Assigning skills or expertise to a labour via custom attributes.
• Defining custom working days and time ranges for a labour.
• Linking a labour to an existing labour profile for standardized settings.
• Preparing labour resources for scheduling, dispatching, and job allocation.

Path Parameters

This endpoint does not require any path parameters.

Query Parameters

This endpoint does not support query parameters.

Request Body
{
  "labour": {
    "name": "LABOUR_NAME",
    "display_name": "LABOUR_DISPLAY_NAME",
    "description": "DESCRIPTION",
    "image_name": "IMAGE_NAME",
    "email_address": "EMAIL_ADDRESS",
    "use_custom_availability": "USE_CUSTOM_AVAILABILITY",
    "labour_profile": "LABOUR_PROFILE_NAME",
    "custom_form_template": "CUSTOM_FORM_TEMPLATE",
    "custom_attributes": [
      {
        "name": "CUSTOM_ATTRIBUTE_NAME",
        "value": "CUSTOM_ATTRIBUTE_VALUE"
      }
    ],
    "labour_custom_availability": [
      {
        "start_time": "START_TIME",
        "end_time": "END_TIME",
        "available": "AVAILABLE_FLAG",
        "preferred_day": "PREFERRED_DAY"
      }
    ]
  }
}
AttributeTypeDescription
labourobjectRoot object containing labour details.
labour.namestringName of the labour.
labour.display_namestringDisplay name of the labour.
labour.descriptionstringDescription of the labour.
labour.image_namestringImage file name associated with the labour.
labour.email_addressstringEmail address of the labour.
labour.use_custom_availabilitybooleanIndicates whether custom availability is enabled.
labour.labour_profilestringName of the labour profile to associate with the labour.
labour.custom_form_templatestringCustom form template assigned to the labour.
labour.custom_attributesarrayList of custom attributes assigned to the labour.
custom_attributes.namestringName of the custom attribute.
custom_attributes.valuestringValue of the custom attribute.
labour.labour_custom_availabilityarrayCustom availability schedules for the labour.
availability.start_timestringStart time of the availability window.
availability.end_timestringEnd time of the availability window.
availability.availablestringIndicates whether the labour is available during the time slot.
availability.preferred_daystringPreferred working day for the availability entry.
Response

The API returns the newly created labour resource with its system-generated identifiers, current status, associated labour profile details, custom availability entries, and audit metadata. The response confirms successful creation and provides all information required to immediately use the labour in scheduling, assignment, and workforce workflows.

Response Body
{
  "labour": {
    "labour": {
      "status": "LABOUR_STATUS",
      "uuid": "LABOUR_UUID",
      "code": "LABOUR_CODE",
      "name": "LABOUR_NAME",
      "display_name": "LABOUR_DISPLAY_NAME",
      "description": "DESCRIPTION",
      "image_name": "IMAGE_NAME",
      "email_address": "EMAIL_ADDRESS",
      "use_custom_availability": "USE_CUSTOM_AVAILABILITY",
      "labour_profile": {
        "status": "PROFILE_STATUS",
        "uuid": "PROFILE_UUID",
        "name": "PROFILE_NAME",
        "display_name": "PROFILE_DISPLAY_NAME",
        "link": "PROFILE_LINK"
      },
      "custom_form_template": "CUSTOM_FORM_TEMPLATE",
      "created_by": "CREATED_BY",
      "created_on": "CREATED_ON",
      "last_updated_by": "LAST_UPDATED_BY",
      "last_updated_on": "LAST_UPDATED_ON",
      "custom_attributes": [],
      "labour_contacts": [],
      "labour_custom_availability": [
        {
          "status": "AVAILABILITY_STATUS",
          "uuid": "AVAILABILITY_UUID",
          "start_time": "START_TIME",
          "end_time": "END_TIME",
          "available": "AVAILABLE_FLAG",
          "preferred_day": "PREFERRED_DAY"
        }
      ],
      "labour_availability": []
    }
  }
}
AttributeTypeDescription
labourobjectWrapper object containing the created labour.
labour.labourobjectCreated labour resource details.
statusstringCurrent status of the labour.
uuidstringUnique identifier of the labour.
codestringSystem-generated labour code.
namestringName of the labour.
display_namestringDisplay name of the labour.
descriptionstringDescription of the labour.
image_namestringImage file name associated with the labour.
email_addressstringEmail address of the labour.
use_custom_availabilitybooleanIndicates whether custom availability is enabled.
labour_profileobjectAssociated labour profile details.
labour_profile.uuidstringUnique identifier of the labour profile.
labour_profile.namestringName of the labour profile.
labour_profile.display_namestringDisplay name of the labour profile.
labour_profile.linkstringAPI link to the labour profile.
custom_form_templatestringCustom form template assigned to the labour.
created_bystringUser who created the labour record.
created_onstringTimestamp when the labour was created.
last_updated_bystringUser who last updated the labour record.
last_updated_onstringTimestamp of the last update.
custom_attributesarrayCustom attributes associated with the labour.
labour_contactsarrayContact information associated with the labour.
labour_custom_availabilityarrayCustom availability schedule entries.
availability.statusstringStatus of the availability entry.
availability.uuidstringUnique identifier of the availability entry.
availability.start_timestringStart time of availability.
availability.end_timestringEnd time of availability.
availability.availablestringAvailability indicator.
availability.preferred_daystringPreferred working day.
labour_availabilityarrayDefault availability configuration, if applicable.

Looking to build next big project?

With our robust set of tools and resources, you can create custom solutions that integrate seamlessly with our system and take your business to the next level.

Join Our Partner Program