Attributes

Intro

Endpoint: https://sendmunk.com/api/v1/attributes

List Attributes

GET /attributes

Required parameters
  • api_key  - Your API public key.
  • sub_account_id  - SubAccount ID.
Optional parameters
  • limit  - Limit and paginate the output

Create Attribute

POST /attributes

Required parameters
  • api_secret  - Your API private key.
  • sub_account_id  - SubAccount ID.
  • name  - Name of the attribute.
  • type  - Choose either 'text', 'date', or 'number' as the type of input your want for this attribute.

Update Attribute

POST /attributes/{attribute_id}/update

Required parameters
  • api_secret  - Your API private key.
  • sub_account_id  - SubAccount ID.
Optional parameters
  • name  - Name of the attribute.
  • type  - Choose either 'text', 'date', or 'number' as the type of input your want for this attribute.

You can update the name and field type of the attribute. Name and type are optional data but will throw necessary errors if active. If no optional data is passed to the endpoint, the attribute will be returned.

Delete Attribute

DELETE /attributes/{attribute_id}

Required parameters
  • api_secret  - Your API private key.
  • sub_account_id  - SubAccount ID.