v4

latestOpenAPI 3.0.02026-08-04109113304.5 KB
Extensions

Create an Extension

Create a new Extension in a provided project

post/extensions

Request body

archivedboolean

Whether the extension is archived

createdstring date-time

The time when the extension was initially created

descriptionstring

The description for the extension

edit_urlstring required

The URL to load when editing the extension

enabledboolean

Whether the extension is enabled. A disabled extension won't appear in the editor and won't be built into the snippet

experiment_countinteger

Number of experiments that reference this extension across all statuses (running, paused, draft, archived). Computed by the upstream service.

idinteger

The unique identifier for the extension

last_modifiedstring date-time

The last time when the extension was modified

namestring required

Name of the extension

project_idinteger required

The project the extension is in

Example request

{
  "experiment_count": 3,
  "fields": [
    {
      "api_name": "text",
      "default_value": "My Butterbar",
      "field_type": "text",
      "label": "A text field"
    }
  ],
  "id": 3000,
  "name": "My Extension",
  "project_id": 1000
}

Response

Return the created extension

archivedboolean

Whether the extension is archived

createdstring date-time

The time when the extension was initially created

descriptionstring

The description for the extension

edit_urlstring required

The URL to load when editing the extension

enabledboolean

Whether the extension is enabled. A disabled extension won't appear in the editor and won't be built into the snippet

experiment_countinteger

Number of experiments that reference this extension across all statuses (running, paused, draft, archived). Computed by the upstream service.

idinteger

The unique identifier for the extension

last_modifiedstring date-time

The last time when the extension was modified

namestring required

Name of the extension

project_idinteger required

The project the extension is in

Example response

{
  "experiment_count": 3,
  "fields": [
    {
      "api_name": "text",
      "default_value": "My Butterbar",
      "field_type": "text",
      "label": "A text field"
    }
  ],
  "id": 3000,
  "name": "My Extension",
  "project_id": 1000
}