---
title: "PATCH /decision-environments/{id}/"
method: PATCH
path: "/decision-environments/{id}/"
tags: ["decision-environments"]
---

# PATCH /decision-environments/{id}/

`PATCH /decision-environments/{id}/`

Partially update a decision environment

## Path parameters

- `id` integer, required

## Request body

- PatchedDecisionEnvironmentCreate — Serializer for creating the DecisionEnvironment.
  - `name` string
  - `description` string
  - `image_url` string
  - `organization_id` integer, nullable
  - `eda_credential_id` integer, nullable

## Response `200`

Update successful. Return an updated decision environment.

- DecisionEnvironment
  - `name` string, required
  - `description` string
  - `image_url` string, required
  - `organization_id` integer, nullable, required
  - `eda_credential_id` integer, nullable, required
  - `id` integer, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2024-04-23** `cbf68ddd9760` — 1 breaking, 3 warning, 10 info
  - removed the required property `credential_id` from the response with the `200` status
  - removed the request property `credential_id` (media type: application/json)
  - removed the request property `credential_id` (media type: application/x-www-form-urlencoded)
  - removed the request property `credential_id` (media type: multipart/form-data)
  - …10 more
- **2023-08-21** `c84b4813cab1` — 1 info
  - the endpoint scheme security `cookieAuth` was added to the API
- **2023-05-19** `f84d9240fdf2` — 1 info
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2023-04-25** `62d33b790834` — 2 breaking, 6 warning, 6 info
  - removed the required property `eda_credential_id` from the response with the `200` status
  - removed the required property `organization_id` from the response with the `200` status
  - removed the request property `eda_credential_id` (media type: application/json)
  - removed the request property `eda_credential_id` (media type: application/x-www-form-urlencoded)
  - …10 more

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/decision-environments/:id/patch.md)

---

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