UnitAttribute

Create a unit attribute

Use this call to create a new unit attribute.<br>You must have at least one of these scopes: 'unitattributes.create, setup.manage'.

post/inventory/v1/unit-attributes

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

namestring required

The name of the unit attribute

descriptionstring nullable

The description of the unit attribute

Example request

{
  "name": "Floor 1",
  "description": "Floor number"
}

Response

Creation of the new unit attribute was successful.

idstring required

The unit attribute id

Example response

{
  "id": "FLOOR"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.