Workorder Category API (1.0.0)

Download OpenAPI specification:Download

API for managing workorder categories

Workorder Category

Workorder category management operations

Get all workorder categories

Retrieve a list of all workorder categories with optional filtering and pagination

Authorizations:
ApiKeyAuth
query Parameters
page
integer >= 1
Default: 1

Page number for pagination

per_page
integer [ 1 .. 100 ]
Default: 25

Number of items per page

sort
string

Sort field

company_namespace
Array of strings

Company namespace for filtering

disabled
boolean

Filter by disabled status

parent_category
string

Filter by parent category ID

_id
Array of strings

Filter by ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ],
  • "paging": {
    }
}

Create a new workorder category

Create a new workorder category

Authorizations:
ApiKeyAuth
Request Body schema: application/json
name
required
string

Category name

description
string

Category description

code
string

Category code for identification

parent_category
string

Parent category ID for hierarchical structure

color
string

Color code for visual identification

icon
string

Icon identifier

priority_level
integer [ 1 .. 5 ]
Default: 3

Default priority level for workorders in this category

estimated_duration
integer

Estimated duration in minutes

required_skills
Array of strings

Skills required for this category

default_assignee
string

Default assignee for this category

object
approval_required
boolean
Default: false

Whether approval is required for workorders in this category

Array of objects
object
sort_order
integer
Default: 0

Sort order for display

company_namespace
Array of strings

Company namespace

disabled
boolean
Default: false

Whether the category is disabled

Responses

Request samples

Content type
application/json
{
  • "name": "Maintenance",
  • "description": "General maintenance workorders",
  • "code": "MAINT",
  • "parent_category": "string",
  • "color": "#FF5733",
  • "icon": "wrench",
  • "priority_level": 3,
  • "estimated_duration": 0,
  • "required_skills": [
    ],
  • "default_assignee": "string",
  • "notification_settings": {
    },
  • "approval_required": false,
  • "custom_fields": [
    ],
  • "sla_settings": {
    },
  • "sort_order": 0,
  • "company_namespace": [
    ],
  • "disabled": false
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get workorder category by ID

Retrieve a specific workorder category by its ID

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Workorder category ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update workorder category

Update an existing workorder category

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Workorder category ID

Request Body schema: application/json
name
string

Category name

description
string

Category description

code
string

Category code for identification

parent_category
string

Parent category ID for hierarchical structure

color
string

Color code for visual identification

icon
string

Icon identifier

priority_level
integer [ 1 .. 5 ]

Default priority level for workorders in this category

estimated_duration
integer

Estimated duration in minutes

required_skills
Array of strings

Skills required for this category

default_assignee
string

Default assignee for this category

object
approval_required
boolean

Whether approval is required for workorders in this category

Array of objects
object
sort_order
integer

Sort order for display

company_namespace
Array of strings

Company namespace

disabled
boolean

Whether the category is disabled

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "code": "string",
  • "parent_category": "string",
  • "color": "string",
  • "icon": "string",
  • "priority_level": 1,
  • "estimated_duration": 0,
  • "required_skills": [
    ],
  • "default_assignee": "string",
  • "notification_settings": {
    },
  • "approval_required": true,
  • "custom_fields": [
    ],
  • "sla_settings": {
    },
  • "sort_order": 0,
  • "company_namespace": [
    ],
  • "disabled": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete workorder category

Delete a workorder category by ID

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Workorder category ID

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Bulk delete workorder categories

Delete multiple workorder categories by their IDs

Authorizations:
ApiKeyAuth
Request Body schema: application/json
ids
required
Array of strings

Array of workorder category IDs to delete

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true
}

Get category hierarchy

Get workorder categories in hierarchical structure

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}