API - Create Content Blocks
Table of Contents
Note: If you are entering a more complex Content Block in the content field that requires double quotes in it, they must be entered and exited with a backslash
Example:
content: "{{#if (eq [First-Name] "Tommy")}}Hello there. {{[First-Name]}}{{else}}What is your name?{{/if}}"
{
"//DOC": [
"ContentBlock::CreateContentBlock",
"",
"Create a content block.",
"",
" name [string, required]: content block name",
" description [string, required]: description of content block",
" content [string, required]: content of content block",
" isglobal [bool, optional, default=false]: is global"
],
"username": "johnsmith@pinpointe.com",
"usertoken": "XXX",
"requesttype": "ContentBlock",
"requestmethod": "CreateContentBlock",
"details": {
"name": "Name 02",
"description": "Added via API",
"content": "I work for {{[Company-Name]}}",
"isglobal": "0"
}
}
JSON_request element
username: Username used to login to Pinpointe
usertoken: Unique token assigned to Pinpointe account
requesttype: ContentBlock
requestmethod: CreateContentBlock
detail element
name (required): Name of Content Block
description (required): Description of Content Block
content (required): The content of the Content Block
isglobal (optional): Is the Content Block global? (boolean)
Successful response
response element
status: Returns SUCCESS when successful
Unsuccessful response
response element
status: Returns FAILED when unsuccessful
error message: Text explaining that the link is invalid
Pinpointe Newsletter
Join the newsletter to receive the latest updates in your inbox.