post https://{youraccountname}.api-us1.com/api/3/personalizations
Create a personalization variable
{
"personalization": {
"tag": "brand new tag",
"name": "brand new name",
"format": "text",
"content": "Hello World!",
"listids": "2,3,4,5"
}
}
{
"personalization": {
"tag": "brand-new-tag",
"name": "brand new name",
"format": "text",
"content": "Hello World!",
"listids": "2,3,4,5",
"userid": "1",
"links": [],
"id": "8"
}
}
Tags with spaces will have
-
added between words.Creating a variable with the
tag
of"brand new tag"
will result in a variable being created with the tag"brand-new-tag"
Creating variables that have a pre-existing tag will have
_X
appended to the tag name.If a variable is created with the
tag
set to"tag-name-example"
but another variable already exists with that same tag, the new variable will still be created, but will be created with and underscore and the next available number appended to the end of the tag, ie:"tag-name-example_1"