Categories

List All Categories


GET http://api.servicem8.com/api_1.0/Category.json

Response

Status: 200

[[{"uuid":"...",
"name":"...",
"colour":"...",
"active":"..."},
{"uuid":"...",
"name":"...",
"colour":"...",
"active":"..."}]]

Show a Category


GET http://api.servicem8.com/api_1.0/Category/{UUID}.json
Returns a single Category.

Response

Status: 200

[{"uuid":"...",
"name":"...",
"colour":"...",
"active":"..."}]

Create a Category


POST http://api.servicem8.com/api_1.0/Category.json
Creates a new Category.

Request

{"name":"New Data Here"}

Response

Status: 200

Update a Category


POST http://api.servicem8.com/api_1.0/Category/{UUID}.json
Updates an existing Category with new details from the submitted JSON.

Request

{"name":"Updated Data Here"}

Response

Status: 200

Destroy a Category


DELETE http://api.servicem8.com/api_1.0/Category/{UUID}.json
Deactivate the Category at the referenced URL.

Response

Status: 200