Update Template
Copied
https://api.ocamba.com/v1/hood/templates/{id}
Copied
https://api.ocamba.com/v1/hood/templates/{id}
Updates a specific Template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Name
Descriptionidstringrequired
Unique resource identifier.Example: 12345
Name
DescriptionAdex message object.
Adex Message
Name
Descriptionaccount_idarray
Array of account ids created on Ocamba platform.Example: 123456,654321
campaign_idarray
Array of campaign ids created on Ocamba platform.Example: 1367890,1098763
default_campaign_idinteger
Campaign id created on Ocamba platform.Example: 1036975
group_idarray
Array of group ids created on Ocamba platform.Example: 113,22,374
number_of_messagesinteger
Minimal value is 1, maximal value is 10.Example: 4
Default: 1
repeat_on_clickinteger
Repeats action on clickExample: 1
Possible values: 0 | 1
zone_idinteger
Push zone id created on Ocamba platform.Example: 1000321
descriptionstring
The description of the Template.Example: This is an example of description.
Email object.
Email message
Name
Descriptioncontentstring
The email content. string[1 .. 65535] characters.Example: 60% Off One Item Just Added to the Sale! Click here!
preheaderstring
The preheader is the text to the right of the subject line that gives a brief preview of the email. string[1 .. 100] characters.Example: 60% Off One Item Just Added to the Sale!
subjectstring
The subject of the email. string[1 .. 78] characters.Example: My first email with Ocamba.
namestring
Name of the TemplateExample: Template Example
Push message object.
Push Message
Name
Descriptionactionspush-message-action
An array of action objects.Push Message Action
Name
Descriptioniconstring
Visual attribute presented to the user. Must be a valid url.Example: https://www.iconexample.com
titleobject
The main textual aspect as pairs of keys and values, where key represents language and value title in that language.Example: { "en": "en_title" "de": "de_title" }
urlstring
The landing url of the action.Example: https://www.urlexample.com
badgestring
Monochromatic mini-icon which portrays to user source where he subscribed in the first place.Example: https://www.badgeexample.com
bodyobject
Name
Descriptionkeystring
Language code supported by Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
Maximum 120 characters.Example: Hello world
iconstring
Secondary visual attribute presented to the user. Must be a valid url.Example: https://www.iconexample.com
imageobject
Name
Descriptionkeystring
Language code supported by Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
Maximum 1000 characters.Example: https://www.exampleimage.com/
landing_urlstring
The url of the site the user is redirected to when clicking on the notification.Example: https://www.landingurl.com/
renotifystring
Replacing old notification with the new one using the silent method. Applicable only with tag option.Example: 0
Possible values: 0 | 1
require_interactionstring
Demand action execution from the user. Applicable only for desktop users. Acts like a boolean.Example: 1
Possible values: 0 | 1
silentstring
Serving notification without sound and vibration. Applicable only to mobile devices.Example: 0
Possible values: 0 | 1
tagstring
This option enables the removal of notifications with the same tag which were delivered earlier.Example: tag
titleobject
Name
Descriptionkeystring
Language code supported by Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
Maximum 70 characters.Example: Title example
vibrationstring
Two vibration pulses with customizable length and pause between them, described in milliseconds (200,100,200 formats), will start when a notification is displayed. Applicable only for Android users.Example: 100,100,200
Sms message object.
Sms Message
Name
Descriptioncontentobject
Name
Descriptionkeystring
Language code supported by Ocamba platform (ISO 639-2, 2 letter language codes).Example: en
valuestring
Maximum 160 characters.Example: Content example
shorten_links[ shorten-link ]
Array of shorten link objects, maximum length is limited by content length. If a placeholder in content has less than 23 characters it will count as 23 characters.Shorten Link
Name
Descriptionexpires_innumber (integer)
The amount of time in days in which the shortened link will expire. Minimum is 1 maximum is 60. Default value is 7.Example: 4
placeholderstring
Placeholder for the url in content. It must also be present in content of the sms. Maximum length is 20.Example: URL_1
urlstring
A valid url that will be shortened. The shortened version will replace the placeholder when sending sms. Maximum length is 1000.Example: https://ocamba.com
telegramtemplate-telegram-message
Telegram Message
Name
Descriptioncontentstring
Content of the telegram message.Example: Hello from Ocamba!
204 - No Content
note
1 At least one of the updatable fields should be sent via HTTP body in order to change the current state of the template.
tip
1 If you don't know the Template 'id', list the Templates to find it.