PUT
Edit a measurement category
Company space For: Manager · Permission: uom_categories.update Conditions
  • The category must not be built-in.
  • The name is trimmed and lowercased, required, unique among the organization’s categories (the category itself is ignored) and cannot be exowpee_bundle_count.
Part of Units of measure.

Authorizations

Authorization
string
header
required

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

Path Parameters

uom_category
string
required

Identifier of the unit-of-measure category to rename (27-character KSUID).

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none,
resource
fields
string

Comma-separated JSON keys of the root resource (id is always rendered). Available: id, name, created_at, updated_at.

include
string

Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: units.

Body

application/json
name
string
required

New name of the category. Trimmed and lowercased; required, at most 120 characters, unique in the organization and not the reserved exowpee_bundle_count.

Maximum string length: 120

Response

Resource (only with response=resource).

id

Identifier of the category (27-character KSUID).

name

Lowercase name of the category, unique within the organization.

units
array

Units of the category of the current organization. Present only when requested with include=units.

created_at

Date and time the record was created (ISO 8601, UTC).

updated_at

Date and time the record was last changed (ISO 8601, UTC).