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
The Portal identifier
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
- warning
added the new
typeenum value to the///////response property for the response status
- warning
- breaking
the response property
///////became nullable for the status - breaking
the response property
///////became nullable for the status - breaking
the response property
///////became nullable for the status - breaking
the response property
///////became nullable for the status - breaking
the response property
///////became nullable for the status
- breaking