PUT
Rename a stock label
Company space For: Stock keeper, Manager · Permission: stock_labels.update Conditions
  • The company must hold the stock label management feature.
  • The label must belong to the current organization.
  • name is required, up to 100 characters, and must be unique in the organization ignoring case; the label’s own current name is not a conflict.
What else happens
  • Every lot carrying the label shows the new name; assignments are unchanged.
Part of Check stock levels and label lots.

Authorizations

Authorization
string
header
required

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

Path Parameters

stock_label
string
required

Identifier of the stock label.

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: .

Body

application/json
name
string
required

New name of the label, up to 100 characters. Required. Must be unique in the organization ignoring case; the label's own current name is accepted.

Maximum string length: 100

Response

Resource (only with response=resource).

id

Identifier of the stock label (27-character KSUID string).

name

Name of the label, unique in the organization ignoring case.

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).