---
title: "🔒 Создание нового проекта компании (доступно администраторам)."
method: POST
path: "/projects/project/create"
tags: ["Projects"]
---

# 🔒 Создание нового проекта компании (доступно администраторам).

`POST /projects/project/create`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/projects/project/create`
- 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:create` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`POST /projects/project/create`**

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

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

export interface ProjectsProjectCreateBodyFields {
  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 ProjectsProjectCreateResponse = 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)

## Headers

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

## Request body

- ProjectsProjectCreateBody: Partial body (Valid.Patch) for `projects/project/create` — все поля опциональны
  - `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: Required ID field missing in request body
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege project:create required
- `406`: TimeResync — расхождение rts с сервером
- `422`: UnprocessableContent: Project with specified ID already exists

---

[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)
