Update single Template

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Path Params
string
required

Unique identifier of the resource - {id}

Body Params
data
required
Responses

400

Bad Request:

CodeMessageDescription
1259'data.name' is invalid
1260'data.text' is too longText must be at most 1000 characters
1265'data.url' is too longURL must be at most 2083 characters
1266'data.url' contains invalid charactersURL must be valid
1268'data.filename' is too longFilename must be at most 512 characters
1269'data.filename' contains invalid charactersFilename must only contain [a-zA-Z0-9_] characters
1273'date.button_value' is invalid it should be a valid phone number in case of PHONE_CALL type, or valid URL in case of LINK type
1274'data.button_text' too longButton Text must be at most 20 characters
1278File extension can be only: .bmp, .gif, .jpg, .jpeg, .png, .svg, .webp. maximum size 24 MBFor Viber image template
1279File extension can be only: .3gpp, .m4v, .mov, .mp4. maximum size is 200 MBFor Viber video template
1280File extension can be only: .txt, .doc, .docx, .dot, .dotx, .rtf, .odt, .odf, .fodt, .info.pdf, .xps, .pdax, .eps.xls, .xlsx, .xltx, .xlsm, .csv, .ods, .fods. maximum size 200 MBFor Viber document template
1282URL should start with with 'https://' and have maximum length of 1000 charactersFor Viber URLs
1283Document name should be Maximum 25 charactersViber filename must be at most 25 characters
1284Both 'data.button_value' and 'data.button_text' are required in case one of them specified or both of them must be removedFor Viber template with buttons
1285Text + Image combination not allowed (button is missing)For Viber image template
1287Image and Text combination not supported by ViberFor Viber image template
1289'data.media_id' is invalidShould be valid UUID
1293Unable to remove 'data.text' when the template type is 'text'Text can't be removed for Viber(text) template
1294Unable to update 'data.filename' when the template type is 'data.image' or 'data.video'Only Viber document template can have filename
1295Either 'data.media_id' or 'data.url' must be providedFor image, video or document templates can't remove both values
1298For 'data.type: video' only 'data.media_id'/'data.url', 'data.name' can be updatedViber video template do not support 'button_text', 'button_value' and 'filename'
1299For 'data.type: document' only 'data.filename', 'data.media_id'/'data.url', 'data.name' can be updatedViber document template do not support 'text', 'button_text' and 'button_value'
1300The combination is not supported. Possible combinations include image, text and button
1301'data.button_type' unknown field
1305'data.filename' can't be removed from 'Document' templateFor document templates can't remove filename value

404

Not Found:

CodeMessage
1251Template not found

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json