Create send label
Create an address send label for an enterprise.
The token must hold one of user_manage, wallet_manage_all, or enterprise_manage_all;
a token without one of them receives 401.
Body Params
object
Create Send Label Request Body
The request body for creating a send label: the coin, address and enterprise the label applies to, and the label text itself.
-
coinstring requiredThe coin the label applies to.
Tokens are stored under their underlying chain.
-
addressstring requiredThe address to label.
Must be a valid send label address for the coin.
-
enterpriseIdstring requiredThe ID of the enterprise the label belongs to.
The caller must be an enterprise admin or a wallet admin or spender in the enterprise.
-
labelstring requiredThe human-readable label for the address.
Must be between 1 and 250 characters.
Responses
200
OK
Response Body
object
-
idstring requiredThe ID of the send label -
coinstring requiredThe coin the label applies to. Tokens are stored under their underlying chain -
addressstring requiredThe labelled address -
enterpriseIdstring requiredThe ID of the enterprise the label belongs to -
labelstring requiredThe human-readable label for the address
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
401
Unauthorized
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
403
Forbidden
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
409
Conflict
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id