Experiments

Update experiment

Changed on

Replaces an experiment's mutable fields. variants, when supplied, fully replaces the array (each variant carries its own baseline flag). Renaming may regenerate the slug.

put/v1/projects/{projectSlug}/experiments/{experimentSlug}

Request

  • Base URL
    https://api.latitude.so
  • Auth
    HTTP bearer

Path parameters

projectSlugstring required

Project slug (human-readable identifier)

Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.

experimentSlugstring required

Experiment slug (human-readable identifier within the project).

Request body

namestring

New name. Renaming may regenerate the slug — re-read the response or rely on id.

descriptionstring

New description.

Response

Updated experiment

idstring required

Stable experiment identifier.

organizationIdstring required

Organization that owns this experiment.

projectIdstring required

Project this experiment belongs to.

slugstring required

URL-safe slug derived from name. Unique within the project.

namestring required

Human-readable name.

descriptionstring required

Free-form description. Empty string when not set.

createdAtstring required

ISO-8601 timestamp of creation.

updatedAtstring required

ISO-8601 timestamp of the last update.

Changes