POST /contacts/attributes/{attributeCategory}/{attributeName}

Servers

Path parameters

Name Type Required Description
attributeCategory String Yes

Category of the attribute

Valid values:

  • "normal"
  • "global"
  • "calculated"
  • "category"
  • "transactional"
attributeName String Yes

Name of the attribute

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
multiCategoryOptions[] Array No

List of options you want to add for multiple-choice attribute. Use only if the attribute's category is "normal" and attribute's type is "multiple-choice". None of the multicategory options can exceed max 200 characters. For example: ["USA","INDIA"]

enumeration[] Array No

List of values and labels that the attribute can take. Use only if the attribute's category is "category". None of the category options can exceed max 200 characters. For example, [{"value":1, "label":"male"}, {"value":2, "label":"female"}]

enumeration[].label String Yes

Label of the value

enumeration[].value Integer Yes

Id of the value

type String No

Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute )

Valid values:

  • "float"
  • "date"
  • "text"
  • "boolean"
  • "id"
  • "category"
value String No

Value of the attribute. Use only if the attribute's category is 'calculated' or 'global'

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.