latestSwagger 2.02026-08-10148196271.0 KB
afaab604b58c
snippets
Create or update a snippet
Create or update a snippet by ID (numeric) or name (string). For names, creates the snippet if it doesn't exist. For IDs, only updates existing snippets. Numeric identifiers are treated as IDs, string identifiers as names.
put/api/snippets/{identifier}
Path parameters
identifierstring required
Snippet ID (numeric) or name (string). Numeric identifiers are treated as IDs, string identifiers as names. For name-based identifiers, creates the snippet if it doesn't exist.
Request body
Response
Snippet updated successfully