Create Attribute

Create contact attribute

Options

Attribute Category
Category of the attribute
Attribute Name
Name of the attribute
Body
Values to create an attribute

Request body which must comply to the following JSON Schema:

{
  "type" : "object",
  "properties" : {
    "value" : {
      "type" : "string",
      "description" : "Value of the attribute. **Use only if the attribute's category is 'calculated' or 'global'**\n",
      "example" : "COUNT[BLACKLISTED,BLACKLISTED,<,NOW()]"
    },
    "isRecurring" : {
      "type" : "boolean",
      "description" : "Type of the attribute. **Use only if the attribute's category is 'calculated' or 'global'**\n",
      "example" : true
    },
    "enumeration" : {
      "type" : "array",
      "description" : "List of values and labels that the attribute can take. **Use only if the attribute's category is \"category\"**. For example:\n**[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]**\n",
      "items" : {
        "required" : [ "label", "value" ],
        "type" : "object",
        "properties" : {
          "value" : {
            "type" : "integer",
            "description" : "Id of the value",
            "example" : 1
          },
          "label" : {
            "type" : "string",
            "description" : "Label of the value",
            "example" : "Women"
          }
        }
      }
    },
    "multiCategoryOptions" : {
      "type" : "array",
      "description" : "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\".** For example:\n**[\"USA\",\"INDIA\"]**\n",
      "items" : {
        "type" : "string"
      }
    },
    "type" : {
      "type" : "string",
      "description" : "Type of the attribute. **Use only if the attribute's category is 'normal', 'category' or 'transactional'**\nType **boolean and multiple-choice** is only available if the category is **normal** attribute\nType **id** is only available if the category is **transactional** attribute\nType **category** is only available if the category is **category** attribute\n",
      "example" : "text",
      "enum" : [ "text", "date", "float", "boolean", "id", "category", "multiple-choice" ]
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.