- To update a created snippet
- Head over to the REST API settings page
- Enter the Update Snippet endpoint and
- Click on the Save Changes button
- Update snippet endpoint URI
- Use the following URI parameters to update a snippet
- {token} : 6fB9Ied3Tt8BbLyy
- {snippet-title} : sample-snippet
- {vars}: use 0 for empty or enter comma separated values e.g: name, email, dob
- {shortcode}: 1 for enable or 0 for disable/empty
- {php}: 1 or 0
- {wptexturize}: 1 or 0
- {snippet-code}: write simple/plain text, HTML, PHP etc.
- {snippet-description}: PHP is a general-purpose scripting language especially suited to web development.
- Snippet successfully updated
Was this article helpful to you?
Yes
No