Mutation
renameLabel
Rename one label across the whole workspace; asynchronous — every creator carrying it follows the new spelling.
Arguments
- labelName String! required
- The label to rename, exactly as the
labelsquery returns it. Matching ignores case and surrounding whitespace. Not length-limited: a label longer than the creation limit stays renameable. A blank name is rejected. - newLabelName String! required
- The new spelling, stored as typed (surrounding whitespace is stripped). At most 100 characters. A different label that already has this name refuses the rename — there is no implicit merge; use
mergeLabelsto fold one label into another. A respelling of the same label (VIP→vip) is allowed. A blank name is rejected.
Returns
Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.
- operationId ID
- The
rename_labeloperation that runs this rename; poll it withoperation(id:). Null when userErrors is non-empty. A label operation tracks progress withstatus,totalandprocessedonly — its record-derived counts are always 0 and its item-id lists always empty. - scheduled Boolean!
- True when the rename is scheduled;
operationIdis then set. False when userErrors is non-empty. The rename is asynchronous. - userErrors [UserError!]!
- Errors that refused the request, on the input at fault: a blank or over-long name, a label that does not exist, is being deleted or is already being renamed, a new name that another label already has, or no user to attribute the rename to. Empty on success.
- field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.