Documentation Index

Fetch the complete documentation index at: https://docs.wair.ai/llms.txt

Use this file to discover all available pages before exploring further.

POST /UnitOfMeasures

Prev Next

GENERAL INFORMATION

Use this endpoint to create unit of measures.  Direct link to Swagger documentation:

https://public-api-dev.wair.cloud/swagger/index.html#/Items/post_api_v1_UnitOfMeasures

REQUEST

Authentication

Bearer token, information on page POST /Token

Headers

Name

Description

Example

X-Tenant

Tenant code supplied by Wair

“TENANT”

QueryParameters:

Name

Description

Example

fullLoad

See documentation: Integration core principles

true

Body example:

{
  "unitOfMeasures": [
    {
      "unitOfMeasureId": "guid01",
      "code": "P1",
      "description": "Piece"
    },
    {
      "unitOfMeasureId": "guid02",
      "code": "P2",
      "description": "Pair"
    }
  ]
}

Additional information:

unitOfMeasureId and code =  Use of "id" and "code" archived

description = description of the unit of measure.

RESPONSE

StatusCodes:

200 = OK

401 = Unauthorized, which means an expired/missing/invalid token

400 = Bad request, see body of the response to check which validation errors have occured

500 = System error, see body of the response to check which error has occured or contact integration support

Body Example:

No body in the response.