Create Service Task
POSThttps://secure.fleetio.com/api/v1/service_tasks
Creates a new Service Task
Request
- application/json
Body
The name of the Service Task.
Possible values: <= 255 characters
A description of the Service Task.
Responses
- 201
- 401
- 403
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The date and time this Service Task was archived, if applicable.
A name for this Service Task.
Possible values: <= 255 characters
A description of this Service Task.
Whether this Service Task belongs to a group of Service Tasks.
The expected duration in seconds this Service Task should take to complete.
Whether this Service Task is a standard (commonly performed) Service Task.
The category hierarchy of this Service Task.
Possible values: <= 255 characters
The ID of the Service Task Category this Service Task belongs to.
The ID of the Standard Service Task this Service Task belongs to.
The ID of the default VMRS Reason for Repair for this Service Task.
The ID of the default VMRS System for this Service Task.
The ID of the default VMRS Assembly for this Service Task.
The ID of the default VMRS Component for this Service Task.
The ID of the default VMRS System Group for this Service Task.
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
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"archived_at": "2024-07-29T15:51:28.071Z",
"name": "string",
"description": "string",
"is_group": true,
"expected_duration_in_seconds": 0,
"standard": true,
"category_hierarchy": "string",
"service_task_category_id": 0,
"standard_service_task_id": 0,
"default_vmrs_reason_for_repair_id": 0,
"default_vmrs_system_id": 0,
"default_vmrs_assembly_id": 0,
"default_vmrs_component_id": 0,
"default_vmrs_system_group_id": 0,
"merged_service_task_id": 0
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
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
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
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"
}'