Projects

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

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

Access: authorized (10 ) · Scope: write

Allows: project:create (все обязательны; без ресурса)

TypeScript (copy-paste)

POST /projects/project/create

<details open><summary><b>Body (Partial)</b></summary>
// 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>
export type ProjectsProjectCreateResponse = IServerResponse<Project>

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

Полный файл типов: /docs/types · raw: /docs/api-types.ts

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

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Request body

cIDstring uuid
IDstring uuid
titlestring
logoFIDstring uuid nullable
ordinteger

Unix timestamp in milliseconds

isDeletedboolean nullable
deletedTSinteger nullable
updTSinteger

Unix timestamp in milliseconds

updUIDstring

Response

OK — IServerResponse<Project>

codeinteger required
srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.