Tags
Create a tag
Creates a tag in the vocabulary of the account.
tags:writeResult
generated from the schema
If you also send entityId and entityType, it creates it AND assigns it to that entity in the same step, which is the normal case of an import. The two fields go together or not at all.
Arguments
Tag name.
Limits: min length 1
Entity to assign the tag to in the same step. Requires entityType.
Type of that entity. Requires entityId.
Available options: item, contact, order, space, project, kit, serializedItem, vehicle, staff, service, purchaseOrder, incident, repairTicket, opportunity, contract, invoice, creditNote, salesReceipt, simpleCreditNote, supplierInvoice
Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.
Limits: min length 1, max length 255
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Tag identifier.
Tag name.
true if the tag was also assigned to the entity given in the body.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs POST /api/v1/tags.
Related pages
Link to this section: Related pagesTags
Create a tag
Creates a tag in the vocabulary of the account.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?