Skip to main content

Create a work order type

POSThttps://carchost.fieldcontrol.com.br/services

Creates a work order type.

Requires the X-Api-Key, User-Agent and Content-Type: application/json headers. Limit: 1 request per second (learn more).

Request​

Headers

User-Agentstringrequired

Identification of your application.

Example: MinhaIntegracao/1.0.

Request body

JSON, sent with the Content-Type: application/json header.

namestringrequired

Work order type name.

From 5 to 100 characters.

durationintegerrequired

Estimated service duration, in minutes.

From 0 to 2147483647.

archivedboolean

Archives the work order type.

Default: false.

Responses

  • 201

    Work order type created.

  • 401

    API key missing (Missing API Key) or invalid (Invalid API Key). See Authentication.

  • 403

    Account blocked (Account blocked), expired (Account expired) or on a plan that does not allow integration (Account plan not allowed). See Authentication.

  • 422

    Invalid body (resourceValidationErr).

  • 429

    Limit of 1 request per second exceeded. See Rate limit.

  • 500

    Unexpected server error.