Snippets
Create a snippet
Changed onCreate a new snippet. If a snippet with that name already exists, we'll return a 422 error. If the value contains Liquid, we validate it.
post/v1/snippets
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/snippets
- AuthHTTP bearer
Request body
Example request
{
"name": "address",
"value": "<strong>My Company</strong></br>1234 Fake St<br/>Fake,NY<br/>10111"
}Response
Returns the created snippet.
Example response
{
"snippet": {
"name": "address",
"value": "<strong>My Company</strong></br>1234 Fake St<br/>Fake,NY<br/>10111",
"updated_at": 1582500000
}
}Changes
- info
added the media type
application/jsonfor the response with the status
- info