REST API›Wallet & Transact›Send label

POST

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.

  • coin string required

    The coin the label applies to.

    Tokens are stored under their underlying chain.

  • address string required

    The address to label.

    Must be a valid send label address for the coin.

  • enterpriseId string required

    The ID of the enterprise the label belongs to.

    The caller must be an enterprise admin or a wallet admin or spender in the enterprise.

  • label string required

    The human-readable label for the address.

    Must be between 1 and 250 characters.

Responses

200
OK

Response Body

object

A send label: a human-readable name attached to an address for a coin within an enterprise.
  • id string required
    The ID of the send label
  • coin string required
    The coin the label applies to. Tokens are stored under their underlying chain
  • address string required
    The labelled address
  • enterpriseId string required
    The ID of the enterprise the label belongs to
  • label string required
    The human-readable label for the address
400
Bad Request

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
401
Unauthorized

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
403
Forbidden

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
409
Conflict

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id