Skip to main content
POST
/
v3
/
orgs
/
{org_id}
/
projects
/
work-order-templates
Create a new work order template
curl --request POST \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/projects/work-order-templates \
  --header 'Content-Type: application/vnd.api+json' \
  --header 'X-Session-Token: <api-key>' \
  --data '
{
  "data": {
    "type": "<string>",
    "attributes": {
      "name": "<string>",
      "labels": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "attributes": {
      "name": "<string>",
      "labels": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ]
    },
    "meta": {
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "relationships": {
      "scheme_template": {
        "data": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "<string>"
        }
      }
    }
  },
  "jsonapi": {
    "version": "<string>"
  }
}

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Path Parameters

org_id
string<uuid>
required

The unique identifier for the organisation.

Body

application/vnd.api+json

The work order template to create.

data
object
required

Response

An individual work order template.

JSON API response object

data
object
required

A work order template

jsonapi
object
required