---
title: "Update a plot"
method: PATCH
path: "/v0/projects/{project}/plots/{plot}"
tags: ["projects", "plots"]
---

# Update a plot

`PATCH /v0/projects/{project}/plots/{plot}`

Update a plot for a project. The user must have `edit` permissions for the project.

## Path parameters

- `plot` string, uuid, required
- `project` string, required

## Request body

- union
  - JsonPlotPatch
    - `benchmarks` BenchmarkUuid[], nullable — The benchmarks to include in the plot. Replaces the current benchmarks for the plot. At least one benchmark must be specified.
    - `branches` BranchUuid[], nullable — The branches to include in the plot. Replaces the current branches for the plot. At least one branch must be specified.
    - `index` integer
    - `lower_boundary` boolean, nullable — Display lower boundary limits.
    - `lower_value` boolean, nullable — Display metric lower values.
    - `measures` MeasureUuid[], nullable — The measures to include in the plot. Replaces the current measures for the plot. At least one measure must be specified.
    - `testbeds` TestbedUuid[], nullable — The testbeds to include in the plot. Replaces the current testbeds for the plot. At least one testbed must be specified.
    - `title` string
    - `upper_boundary` boolean, nullable — Display upper boundary limits.
    - `upper_value` boolean, nullable — Display metric upper values.
    - `window` integer
    - `x_axis` 'date_time' | 'version'
    - `y_axis` union
      - 'auto' — Automatically adapt the y-axis scale to the data spread.
      - 'linear' — A linear y-axis scale that shows true magnitudes.
      - 'log' — A logarithmic y-axis scale.
  - JsonPlotPatchNull
    - `benchmarks` BenchmarkUuid[], nullable
    - `branches` BranchUuid[], nullable
    - `index` integer
    - `lower_boundary` boolean, nullable
    - `lower_value` boolean, nullable
    - `measures` MeasureUuid[], nullable
    - `testbeds` TestbedUuid[], nullable
    - `title` string, required
    - `upper_boundary` boolean, nullable
    - `upper_value` boolean, nullable
    - `window` integer
    - `x_axis` 'date_time' | 'version'
    - `y_axis` union
      - 'auto' — Automatically adapt the y-axis scale to the data spread.
      - 'linear' — A linear y-axis scale that shows true magnitudes.
      - 'log' — A logarithmic y-axis scale.

## Response `200`

successful operation

- JsonPlot
  - `benchmarks` BenchmarkUuid[], required
  - `branches` BranchUuid[], required
  - `created` string, date-time, required
  - `lower_boundary` boolean, required
  - `lower_value` boolean, required
  - `measures` MeasureUuid[], required
  - `modified` string, date-time, required
  - `project` string, uuid, required
  - `testbeds` TestbedUuid[], required
  - `title` string
  - `upper_boundary` boolean, required
  - `upper_value` boolean, required
  - `uuid` string, uuid, required
  - `window` integer, required
  - `x_axis` 'date_time' | 'version', required
  - `y_axis` union, required
    - 'auto' — Automatically adapt the y-axis scale to the data spread.
    - 'linear' — A linear y-axis scale that shows true magnitudes.
    - 'log' — A logarithmic y-axis scale.

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.net/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.net/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/versions/84086e99e6cd/schema)
