---
title: "Create a work order status."
url: "https://developers.vzconnect.com/apis/work-order-status-api-1/versions/64939be0-aa77-40bd-a397-7597ff95ac52/operations/POST__workorderstatuses"
---

> Full API specification: https://developers.vzconnect.com/apis/work-order-status-api-1/versions/64939be0-aa77-40bd-a397-7597ff95ac52.md

# Create a work order status.

`POST` `/pas/v1/workorderstatuses`

Operation ID: `POST__workorderstatuses`

The POST Work Order Status Code method allows integration users to create new work order statuses that can be further added to existing work orders. When POSTing a new work order status, a new WorkOrderStatusCode must be provided. If a status code is provided that currently exists within the REVEAL account, a negative response will be returned and the status will not be created.

## Request body (required)

Content types: `application/json`

## Responses

- `201` - Work order status successfully created.
- `400` - Invalid request body.
- `401` - Unauthorized.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Work Order Status API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /pas/v1/workorderstatuses:
    post:
      operationId: POST__workorderstatuses
      summary: Create a work order status.
      description: The POST Work Order Status Code method allows integration users to
        create new work order statuses that can be further added to existing
        work orders. When POSTing a new work order status, a new
        WorkOrderStatusCode must be provided. If a status code is provided that
        currently exists within the REVEAL account, a negative response will be
        returned and the status will not be created.
      requestBody:
        description: The work order status to create.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/WorkOrderStatusInput"
            example:
              WorkOrderStatusCode: "78"
              WorkOrderStatusDescription: Changed Description
              WorkOrderStatusType: Open
        required: true
      responses:
        "201":
          description: Work order status successfully created.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkOrderStatusInput"
              example:
                WorkOrderStatusCode: "78"
                WorkOrderStatusDescription: Changed Description
                WorkOrderStatusType: Open
        "400":
          description: Invalid request body.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessage"
              example:
                Message: The Work Order status code specified was not valid.
        "401":
          description: Unauthorized.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/pas/v1/workorderstatuses/?$
      tags:
        - Work Order Status API
components:
  schemas:
    WorkOrderStatusInput:
      type: object
      properties:
        WorkOrderStatusCode:
          type: string
          description: Work Order Status Codes are created using the Planning and
            Scheduling Work Order Status API. All available work order status
            codes can be found within REVEAL's Admin section under Work Order
            Preferences. A work order status is used to update a work orders
            lifecycle for tracking purposes. When POSTing a new work order
            status, a new WorkOrderStatusCode must be provided. If a status code
            is provided that currently exists within the REVEAL account, a
            negative response will be returned and the status will not be
            created.
          example: "78"
        WorkOrderStatusDescription:
          type: string
          description: When creating work order statuses within a REVEAL account there is
            an optional field for a Description to be provided. If the status
            was created with a Description the GET method for a work orders
            current status will return the description field.
          example: Changed Description
        WorkOrderStatusType:
          type: string
          description: Work Order Status Types provide additional context to the
            associated Work Order Status Type Code used to calculate work order
            durations within REVEAL.
          example: Open
    ErrorMessage:
      type: object
      properties:
        Message:
          type: string
          description: A message describing why the request was not successful.
          example: The Work Order status code specified was not valid.
```
