---
title: "🔒 Обновление параметров существующего проекта компании."
method: POST
path: "/projects/project/update"
tags: ["Projects"]
---

# 🔒 Обновление параметров существующего проекта компании.

`POST /projects/project/update`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/projects/project/update`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Обновление параметров существующего проекта компании.

**Access:** `authorized` (10 ) · **Scope:** `write`

**Allows:** `project:update` (все обязательны; ресурс — `<тип>ID` / `ID` из запроса, `user:*` — `userID` или сам пользователь)

### TypeScript (copy-paste)

**`POST /projects/project/update`**

<details open><summary><b>Params</b></summary>

```typescript
export interface ProjectsProjectUpdateParams {
  ID: string
}
```

</details>

<details open><summary><b>Body (Partial)</b></summary>

```typescript
// Patch-body: все поля опциональны (Valid.Patch)
export type ProjectsProjectUpdateBody = Partial<Project>

export interface ProjectsProjectUpdateBodyFields {
  cID?: string
  ID?: string
  title?: string
  logoFID?: string | null
  /** Unix timestamp in milliseconds */
  ord?: number
  isDeleted?: boolean | null
  deletedTS?: number | null
  /** Unix timestamp in milliseconds */
  updTS?: number
  updUID?: string
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type ProjectsProjectUpdateResponse = IServerResponse<Project>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `ID` string, uuid, required

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- ProjectsProjectUpdateBody: Partial body (Valid.Patch) for `projects/project/update` — все поля опциональны
  - `cID` string, uuid
  - `ID` string, uuid
  - `title` string
  - `logoFID` string, uuid, nullable
  - `ord` integer: Unix timestamp in milliseconds
  - `isDeleted` boolean, nullable
  - `deletedTS` integer, nullable
  - `updTS` integer: Unix timestamp in milliseconds
  - `updUID` string

## Response `200`

OK — `IServerResponse<Project>`

- object
  - `code` integer, required
  - `data` Project, required: Entity `Project` (table: Project )
    - `cID` string, uuid, required
    - `ID` string, uuid, required
    - `title` string, required
    - `logoFID` string, uuid, nullable
    - `ord` integer, required: Unix timestamp in milliseconds
    - `isDeleted` boolean, nullable
    - `deletedTS` integer, nullable
    - `updTS` integer, required: Unix timestamp in milliseconds
    - `updUID` string, required
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest / Validation — неверные params/body/headers
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege project:update required
- `404`: NotFound: Project with specified ID does not exist
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
