Code preference:
Curl
Ruby
Php
Python
Node.js
C#
Java

Attribute

Developers can access their attribute information as well as manage it using this API. Following are the various operations supported by this API.

This API call will let you access all the attributes information under the account.

Input Parameter Description
NA NA

Example :

Sample Output :

This API call will let you access the specific type of attribute information.

Input Parameter Description
type Type of attribute. Possible values – normal, transactional, category, calculated & global ( case sensitive ) [Mandatory].

Example :

Sample Output :

This API call will let you create an attribute.

Input Parameter Description
type Type of attribute. Possible values – normal, transactional, category, calculated & global ( case sensitive ) [Mandatory].
data The name and data type of ‘normal’ & ‘transactional’ attribute to be created in your SendinBlue account. It should be sent as an associative array. Example: array(‘ATTRIBUTE_NAME1′ => ‘DATA_TYPE1′, ‘ATTRIBUTE_NAME2’=> ‘DATA_TYPE2′).
The name and data value of ‘category’, ‘calculated’ & ‘global’, should be sent as JSON string. Example: ‘[{ “name”:”ATTRIBUTE_NAME1″, “value”:”Attribute_value1″ }, { “name”:”ATTRIBUTE_NAME2″, “value”:”Attribute_value2″ }]’ .
You can use commas to separate multiple attributes and attribute name should be in capital letters [Mandatory].

Example :
a. Type : Normal

b. Type : Transactional

c. Type : Category

d. Type : Calculated

e. Type : Global

Sample Output :

This API call will let you delete a specific type of attribute information.

Input Parameter Description
id Id of attribute to be deleted [Mandatory].

Example :

Sample Output :