Create Equipment
POSThttps://secure.fleetio.com/api/v1/equipment
Creates a new Equipment
Request
- application/json
Body
The name for this Equipment.
The name of the brand which makes this Equipment.
The model name of this Equipment.
The serial number of this Equipment.
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
A pipe delimited group hierarchy. Ex: "Level 1|Level 2|Level 3". Where Level 1 is the parent of Level 2, and 2 is the parent of 3. Any missing nodes in the hierarchy will be created.
Possible values: >= 1
The price at which the Equipment was purchased.
The date on which the Equipment warranty expires.
2023-03-14
Any comments about the purchase of this Equipment.
We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14
The estimated duration in months of the service life for this Equipment.
The estimated resale price of this Equipment.
We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14
Possible values: >= 1
Possible values: >= 1
The default image URL for this Equipment.
*Full details on working with Custom Fields here.
documents_attributes object[]
images_attributes object[]
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
The ID of the Account
this Equipment belongs to.
The name for this Equipment.
The name of the brand which makes this Equipment.
The model name of this Equipment.
The serial number of this Equipment.
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
The purchase price in cents.
The date on which the Equipment was purchased.
2023-03-14
The date on which the Equipment warranty expires.
2023-03-14
Any comments about the purchase of this Equipment.
*Full details on working with Custom Fields here.
The date on which the Equipment was put into service.
2023-03-14
The estimated duration in months of the service life for this Equipment.
The estimated date on which the Equipment will be retired from service.
2023-03-14
The date and time at which the Equipment was archived.
Possible values: >= 1
The number of users watching this Equipment.
Whether or not to bulk watch this Equipment.
The estimated resale price of this Equipment.
A list of any labels applied to this Equipment.
Whether or not to skip automatic watchers callbacks on this Equipment.
The number of Comments
on this Equipment.
Possible values: >= 0
The number of documents attached to this Equipment.
Possible values: >= 0
The number of images attached to this Equipment.
Possible values: >= 0
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"name": "string",
"brand": "string",
"model": "string",
"serial_number": "string",
"equipment_type_id": 0,
"equipment_status_id": 0,
"group_id": 0,
"purchase_vendor_id": 0,
"purchase_price_cents": 0,
"purchase_date": "2023-03-14",
"warranty_expiration_date": "2023-03-14",
"purchase_comments": "string",
"custom_fields": {},
"in_service_date": "2023-03-14",
"estimated_service_life": 0,
"out_of_service_date": "2023-03-14",
"archived_at": "2024-07-29T15:51:28.071Z",
"current_location_entry_id": 0,
"watchers_count": 0,
"watchable_options": {},
"bulk_watch_record": true,
"estimated_resale_price_cents": 0,
"label_list": [
"string"
],
"skip_automatic_watchers_callbacks": true,
"comments_count": 0,
"documents_count": 0,
"images_count": 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/equipment' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"name": "string",
"brand": "string",
"model": "string",
"serial_number": "string",
"type_id": 0,
"status_id": 0,
"group_id": 0,
"group_hierarchy": "string",
"purchase_vendor_id": 0,
"purchase_price": 0,
"purchase_date": "2023-03-14",
"warranty_expiration_date": "2023-03-14",
"purchase_comments": "string",
"in_service_date": "2023-03-14",
"estimated_service_life": 0,
"estimated_resale_price": 0,
"out_of_service_date": "2023-03-14",
"linked_vehicle_id": 0,
"assignee_id": 0,
"default_image": "string",
"custom_fields": {},
"documents_attributes": [
{
"name": "string",
"file_url": "string",
"file_mime_type": "string",
"file_name": "string",
"file_size": 0
}
],
"images_attributes": [
{
"name": "string",
"file_url": "string",
"file_mime_type": "string",
"file_name": "string",
"file_size": 0
}
]
}'