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

# PATCH /projects/{id}/

`PATCH /projects/{id}/`

Partial update of a project

## Path parameters

- `id` integer, required

## Request body

- PatchedProject
  - `name` string
  - `description` string
  - `credential_id` integer, nullable
  - `id` integer
  - `url` string
  - `git_hash` string
  - `import_state` 'pending' | 'running' | 'failed' | 'completed' — * `pending` - Pending * `running` - Running * `failed` - Failed * `completed` - Completed
  - `import_error` string, nullable
  - `import_task_id` string, uuid, nullable
  - `created_at` string, date-time
  - `modified_at` string, date-time

## Response `200`

Update successful. Return an updated project.

- Project
  - `name` string, required
  - `description` string
  - `credential_id` integer, nullable, required
  - `id` integer, required
  - `url` string, required
  - `git_hash` string, required
  - `import_state` 'pending' | 'running' | 'failed' | 'completed', required — * `pending` - Pending * `running` - Running * `failed` - Failed * `completed` - Completed
  - `import_error` string, nullable, required
  - `import_task_id` string, uuid, nullable, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2023-05-19** `f84d9240fdf2` — 2 info
  - the endpoint scheme security `cookieAuth` was removed from the API
  - added the required property `credential_id` to the response with the `200` status
- **2023-04-25** `62d33b790834` — 7 breaking, 25 warning, 5 info
  - the request property `description` became not nullable (media type: application/json)
  - the request property `description` became not nullable (media type: application/x-www-form-urlencoded)
  - the request property `description` became not nullable (media type: multipart/form-data)
  - removed the required property `organization_id` from the response with the `200` status
  - …33 more

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/projects/: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/f84d9240fdf2/schema)
