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"
  }
}


HTML
HTMJSON_request element

JSON request element 


Field NameDescription
usernameUsername used to login to Pinpointe
usertokenUnique token assigned to Pinpointe account
requesttypeContentBlock
requestmethodUpdateContentBlocks


detail element


Field NameDescription
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 NameDescription
statusReturns SUCCESS when successful


Unsuccessful response 


response element


Field NameDescription
statusReturns FAILED when unsuccessful
errormessageText explaining that the link is invalid