Fleet Truck Create
-
URL
/v1/trucks
-
Method:
POST
-
HEADERS
Authorization=bearer ACCESS_TOKEN
-
Data Params
truck[model]=[text]
-
Success Response:
- Code: 201 CREATED
Content:{"data":
{"truck":{
"id":28,
"model":"MODEL_NAME"
}}}
- Code: 201 CREATED
-
Error Response:
- Code: 401 UNAUTHORIZED
Content:{ error": "Invalid access token" }
OR
- Code: 401 UNAUTHORIZED
Content{ error: 'You don't have permission' }
OR
- Code: 422 UNPROCESSABLE ENTITY
Content:{"errors":{
"model":["can't be blank"]
}}
- Code: 401 UNAUTHORIZED
-
Sample Call:
-
Notes: