Skip to main content

Retrieve Service Task

GET 

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

Retrieve the details of an existing Service Task.

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Query Parameters

    expand object

    Currently accepts service_task_parts.

Responses

OK

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
    namestringrequired

    A name for this Service Task.

    Possible values: <= 255 characters

    descriptionstringnullablerequired

    A description of this Service Task.

    expected_duration_in_secondsintegernullable

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

    archived_atdate-timenullable

    The date and time at which this Service Task was archived. null if this Service Task is active.

    subtasks object[]required
  • Array [
  • 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
    namestring

    The name of this subtask.

    descriptionstringnullable

    A description of this subtask.

    expected_duration_in_secondsintegernullable

    The expected duration in seconds this subtask should take to complete.

    subtasksarray

    The subtasks array at this level will always be empty.

    default_vmrs_reason_for_repair objectnullable
    account_idinteger
    aliasstringnullable
    codestringnullable
    enabledboolean
    idinteger
    namestring
    repair_typestringnullable
    standardboolean
    standard_namestringnullable
    typestring
    vmrs_standard_reason_for_repairobjectnullable
    default_vmrs_system_group objectnullable
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_system objectnullable
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_assembly objectnullable
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_component objectnullable
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
  • ]
  • usageinteger

    Indicates the number of times this Service Task has been used. Available by setting the include_usage query parameter to 1.

    default_vmrs_reason_for_repair objectnullablerequired
    account_idinteger
    aliasstringnullable
    codestringnullable
    enabledboolean
    idinteger
    namestring
    repair_typestringnullable
    standardboolean
    standard_namestringnullable
    typestring
    vmrs_standard_reason_for_repairobjectnullable
    default_vmrs_system_group objectnullablerequired
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_system objectnullablerequired
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_assembly objectnullablerequired
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    default_vmrs_component objectnullablerequired
    account_idnumbernullable
    assembly_codestringnullable
    assembly_namestringnullable
    code_typestring

    Possible values: [system_group, system, assembly, component]

    component_codestringnullable
    component_namestringnullable
    enabledboolean
    idinteger
    permissions objectnullable
    destroyboolean
    standardboolean
    system_codestringnullable
    system_groupstringnullable
    system_group_codestringnullable
    system_namestringnullable
    typestring
    vmrs_standard_system_assembly_componentobjectnullable
    service_task_parts object[]

    Any Parts associated with this Service Task. Available by setting the expand[] query parameter to service_task_parts.

  • Array [
  • idinteger
    quantityfloat

    The quantity of this Part related to the Service Task.

    part_idinteger

    The ID of this Part related to the Service Task.

    part_archived_atdate-timenullable

    The date and time at which the Part related to the Service Task was archived, if applicable.

    positioninteger

    The position of this Part in the list of Service Task Parts.

  • ]

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/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— query
ResponseClear

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