Skip to content

REST API changes: 18.0.0 to 18.1.0

This page lists the changes to the OctoPerf REST API between 18.0.0 and 18.1.0. It is written for the people who call the API directly - CI/CD pipelines, custom reporting jobs, in-house dashboards. If you only use the web interface, the Maven plugin or the MCP server, you have nothing to do: they were updated with the platform.

If you are upgrading from 17.1.0 or earlier, read REST API changes: 17.1.0 to 18.0.0 first, then this page.

18.1.0 brings the code snippets: the ready-made snippets of the code editors are now served by the platform, and a workspace can keep snippets of its own. One change requires an update on your side: GET /design/script-templates is removed, its templates are among the built-in snippets. Everything else is additive.


1. TL;DR: what changes

# Change Impact
1 GET /design/script-templates is removed Read the built-in snippets instead
2 New GET /design/snippets/built-in Additive
3 New GET /design/snippets/by-workspace/{workspaceId} Additive
4 New GET, POST, PUT and DELETE of a workspace snippet under /design/snippets Additive

2. Script templates removed

GET /design/script-templates returned the JSR223 templates of the code editors. It is removed: these templates are among the built-in snippets, with those of the other editors. Read them with:

GET /design/snippets/built-in?language=GROOVY

3. Snippets

The snippet

A workspace snippet:

{
  "id": "<snippetId>",
  "workspaceId": "<workspaceId>",
  "name": "Order reference",
  "description": "Extracts the order reference",
  "content": {
    "kind": "CODE",
    "language": "GROOVY",
    "tabTrigger": "orderref",
    "code": "vars.put(\"orderRef\", \"${1:value}\")"
  },
  "created": 1764150000000,
  "lastModified": 1764150000000
}
  • language is the editor the snippet is offered in: GROOVY, JAVA, JAVASCRIPT, GROOVY_CONDITION, JAVASCRIPT_CONDITION, K6 or PLAYWRIGHT.
  • tabTrigger is the word that inserts the snippet on Tab; empty when no word inserts it.
  • description reads as empty when the request leaves it out.

A built-in snippet carries only id, name and content.

Routes

Route What it does Rights
GET /design/snippets/built-in?language= The built-in snippets, of one language when language is given Any signed-in user
GET /design/snippets/by-workspace/{workspaceId}?language= The snippets of a workspace, of one language when language is given Read on the workspace
GET /design/snippets/{id} One workspace snippet Read on its workspace
POST /design/snippets Creates a workspace snippet Admin or Tester of its workspace
PUT /design/snippets/{id} Replaces a workspace snippet Admin or Tester of its workspace
DELETE /design/snippets/{id} Deletes a workspace snippet Admin or Tester of its workspace

The built-in snippets are read-only: a PUT or a DELETE on one answers 403. The snippets of a workspace are deleted with it.

Refusals

Status When
400 The name is blank, or the code is longer than 65,536 characters
403 The caller may not change the snippets of the workspace, or the id of a PUT or a DELETE is a built-in snippet, read-only, or no snippet at all
409 Another snippet of the workspace already bears the name; the comparison ignores case and the surrounding spaces

4. Migration checklist

  1. Replace the calls to GET /design/script-templates with GET /design/snippets/built-in (§2).
  2. Handle a 409 on a snippet creation or update as a name to change, not a call to retry (§3).