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

# POST /projects/{id}/sync/

`POST /projects/{id}/sync/`

Sync a project

## Path parameters

- `id` integer, required

## Response `202`

- Project
  - `name` string, required
  - `description` string
  - `organization_id` integer, nullable, required
  - `eda_credential_id` integer, nullable
  - `signature_validation_credential_id` integer, nullable, required
  - `scm_branch` string
  - `scm_refspec` string
  - `verify_ssl` boolean
  - `proxy` string, required
  - `id` integer, required
  - `url` string, required
  - `scm_type` 'git', required — * `git` - Git
  - `git_hash` string, required
  - `import_state` 'pending' | 'running' | 'failed' | 'completed', required — * `pending` - Pending * `running` - Running * `failed` - Failed * `completed` - Completed
  - `import_error` string, nullable, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2024-04-23** `cbf68ddd9760` — 1 breaking, 1 warning, 9 info
  - removed the required property `import_task_id` from the response with the `202` status
  - removed the optional property `credential_id` from the response with the `202` status
  - the endpoint scheme security `EDAJWTAuthentication` was added to the API
  - the endpoint scheme security `jwtAuth` was added to the API
  - …7 more
- **2023-09-05** `011f9cfbad09` — 3 breaking, 12 info
  - removed the request body
  - the `id` response's property type/format changed from `string`/`uuid` to `integer`/`` for status `202`
  - removed the required property `href` from the response with the `202` status
  - added the optional property `credential_id` to the response with the `202` status
  - …11 more
- **2023-08-21** `c84b4813cab1` — 7 info
  - the endpoint scheme security `cookieAuth` was added to the API
  - the request property `credential_id` became optional (media type: application/json)
  - the request property `credential_id` became optional (media type: application/x-www-form-urlencoded)
  - the request property `credential_id` became optional (media type: multipart/form-data)
  - …3 more
- **2023-05-19** `f84d9240fdf2` — 1 info
  - the endpoint scheme security `cookieAuth` was removed from the API
- …earlier changes not shown

[Full history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/projects/:id/sync/post.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)
