API - Update Content Blocks
Table of Contents
This API updates content blocks.
Note: If you are editing 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\")}}<p>Hello there. {{[First-Name]}}</p>{{else}}<p>Wgat is your name?</p>{{/if}}"
{
"//DOC": [
"ContentBlock::UpdateContentBlock",
"",
"Update a content block.",
"",
" id [int, required]: content block id",
" name [string, optional]: content block name",
" description [string, optional]: content block description",
" content [string, optional]: content block content",
" isglobal [bool, optional]: is global"
],
"username": "matbt@pinpointe.com",
"usertoken": "XXX",
"requesttype": "ContentBlock",
"requestmethod": "UpdateContentBlock",
"details": {
"id": "6",
"name": "Name",
"description": "New description",
"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: UpdateContentBlocks
detail element
id (required): id of Content Block
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.