Snippets
Update Snippet
Changed onUpdates the configuration of a single custom snippet for this portal.
patch/v3/portals/{portalId}/snippets/{snippetId}
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/portals/{portalId}/snippets/{snippetId}
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
portalIdstring uuid required
Example:f32d905a-ed33-46a3-a093-d8f536af9a8a
ID of the portal.
snippetIdstring uuid required
Example:ebbac5b0-ac89-45c3-9d2e-c4542c657e79
ID of the snippet.
Request body
Example request
{
"name": "my-snippet",
"title": "My Snippet",
"content": "# Welcome to My Snippet",
"visibility": "public",
"status": "published",
"description": "A custom page about developer portals"
}Response
Details about a snippet in a portal.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"name": "my-snippet",
"title": "My Snippet",
"content": "# Welcome to My Snippet",
"visibility": "public",
"status": "published",
"description": "A custom page about developer portals",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status
- warning