Snippets

Update snippets

In 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 body

namestring required

The name of the snippet, must be unique. Trimmed of leading and trailing whitespace before storage.

valuestring required

The contents of the snippet (plain text or Liquid). Trimmed of leading and trailing whitespace before storage. Max length is environment-specific (default 16000).

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

No recorded changes to this endpoint across all 1 revision of this API.