Update Content Block
Update 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
| Field Name | Description |
| username | Username used to login to Pinpointe |
| usertoken | Unique token assigned to Pinpointe account |
| requesttype | ContentBlock |
| requestmethod | UpdateContentBlocks |
detail element
| Field Name | Description |
| 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
| Field Name | Description |
| status | Returns SUCCESS when successful |
Unsuccessful response
response element
| Field Name | Description |
| status | Returns FAILED when unsuccessful |
| errormessage | Text explaining that the link is invalid |