POST
/
api
/
job-types
Create a job type
curl --request POST \
  --url http://localhost:3000/api/job-types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "description": "<string>",
  "sheetsPerPane": 2,
  "defaultRawGlassTypes": [
    "<string>"
  ],
  "isActive": true
}
'
{
  "success": true,
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "code": "<string>",
    "description": "<string>",
    "sheetsPerPane": 1,
    "defaultRawGlassTypes": [
      "<string>"
    ],
    "isActive": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Minimum string length: 1
code
string
required
Minimum string length: 1
description
string
sheetsPerPane
integer
Required range: x >= 1
defaultRawGlassTypes
string[]
Minimum string length: 1
isActive
boolean

Response

Job type created

success
boolean
data
object