---
title: "Set static constraints"
method: PUT
path: "/api/v0/experiments/campaigns/{campaign_id}/static-constraints"
tags: ["Experiment Tracker"]
---

# Set static constraints

`PUT /api/v0/experiments/campaigns/{campaign_id}/static-constraints`

Replace all static constraints for a campaign.

## Path parameters

- `campaign_id` string, uuid, required

## Request body

- SetStaticConstraintsRequest — Request body for replacing all static constraints.
  - `constraints` StaticConstraintInput[], required
    - `name` string, required
    - `value` string, required

## Response `200`

Successful Response

- StaticConstraintResponse[]
  - `name` string, required
  - `value` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) · [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outerport/outerport-api/revisions/f565b46daaea/schema)
