---
title: "Override an experiment decision for a user"
method: POST
path: "/v1/override"
---

# Override an experiment decision for a user

`POST /v1/override`

For debugging or testing. Overrides an experiment and variation decision for a given user, in local memory only. Do not use this endpoint for production overrides.

## Request body

- OverrideContext
  - `userId` string
  - `experimentKey` string
  - `variationKey` string

## Response `200`

Valid response

- object

## Other responses

- `400` — Invalid payload
- `401` — Unauthorized, invalid JWT
- `403` — You do not have necessary permissions for the resource

## Changes

- **2023-05-22** `b03cfe30eb69` — 3 breaking, 1 warning, 2 info
  - the response body contentMediaType changed from `` to `application/json` for the status `200`
  - the response's body type/format changed from `array`/`` to `object`/`` for status `200`
  - the `items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - removed the optional property `error` from the response with the `403` status
  - …2 more
- **2020-08-03** `32f6750ffa48` — 1 breaking, 3 info
  - the request's body type/format changed from `array`/`` to `object`/``
  - added the new optional request property `experimentKey`
  - added the new optional request property `userId`
  - added the new optional request property `variationKey`
- **2020-03-16** `aed7da4fdb4a` — 2 breaking, 1 info
  - removed the success response with the status `201`
  - removed the success response with the status `204`
  - added the success response with the status `200`
- **2020-03-05** `cb780f560047` — 1 info
  - added the non-success response with the status `401`
- **2020-02-14** `d57ebb41bebd` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/optimizely/apis/optimizely-agent-api/changes/v1/override/post.md)

---

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