Snippets
Update snippets
Changed onIn your payload, you'll pass a name and value. Snippet names are unique. If the snippet name does not exist, we'll create a new snippet. If the name exists, we'll update the existing snippet.
put/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 an array of snippets.
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