Skip to main content

Create Service Task

POST 

https://secure.fleetio.com/api/v1/service_tasks

Creates a new Service Task

Request

Body

    namestringrequired

    The name of the Service Task.

    Possible values: <= 255 characters

    descriptionstringnullable

    A description of the Service Task.

Responses

OK

Response Headers
    Schema
      idId (integer)required

      Possible values: >= 1

      created_atdate-time

      The date and time at which this record was created.

      Example: 2023-03-14T13:46:27-06:00
      updated_atdate-time

      The date and time at which this record was most recently updated.

      Example: 2023-03-14T13:46:27-06:00
      account_idId (integer)required

      Possible values: >= 1

      archived_atdate-timenullable

      The date and time this Service Task was archived, if applicable.

      namestringrequired

      A name for this Service Task.

      Possible values: <= 255 characters

      descriptionstringnullablerequired

      A description of this Service Task.

      is_groupboolean

      Whether this Service Task belongs to a group of Service Tasks.

      expected_duration_in_secondsintegernullable

      The expected duration in seconds this Service Task should take to complete.

      standardboolean

      Whether this Service Task is a standard (commonly performed) Service Task.

      category_hierarchystring

      The category hierarchy of this Service Task.

      Possible values: <= 255 characters

      service_task_category_idintegernullable

      The ID of the Service Task Category this Service Task belongs to.

      standard_service_task_idintegernullable

      The ID of the Standard Service Task this Service Task belongs to.

      default_vmrs_reason_for_repair_idintegernullable

      The ID of the default VMRS Reason for Repair for this Service Task.

      default_vmrs_system_idintegernullable

      The ID of the default VMRS System for this Service Task.

      default_vmrs_assembly_idintegernullable

      The ID of the default VMRS Assembly for this Service Task.

      default_vmrs_component_idintegernullable

      The ID of the default VMRS Component for this Service Task.

      default_vmrs_system_group_idintegernullable

      The ID of the default VMRS System Group for this Service Task.

      merged_service_task_idintegernullable

      If this Service Task has been merged, this is the ID of the Service Task it was merged into. More information can be found here: Merging Service Tasks

    Authorization: Authorization

    name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
    You can generate a new API key [here](https://secure.fleetio.com/api_keys).
    name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
    curl -L 'https://secure.fleetio.com/api/v1/service_tasks' \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -H 'Authorization: Token <Authorization>' \
    -H 'Account-Token: <Authorization>' \
    -d '{
    "name": "string",
    "description": "string"
    }'
    Request Collapse all
    Base URL
    https://secure.fleetio.com/api
    Auth
    Body
    {
      "name": "string",
      "description": "string"
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!