Projects: Versions

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

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

Access: authorized (10 ) · Scope: write

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

TypeScript (copy-paste)

POST /projects/version/update

<details open><summary><b>Params</b></summary>
export interface ProjectsVersionUpdateParams {
  ID: string
}
</details> <details open><summary><b>Body (Partial)</b></summary>
// Patch-body: все поля опциональны (Valid.Patch)
export type ProjectsVersionUpdateBody = Partial<Version>

export interface ProjectsVersionUpdateBodyFields {
  cID?: string
  projectID?: string
  productID?: string
  ID?: string
  title?: string
  major?: number
  minor?: number
  build?: number | null
  resolvedBugs?: Record<string, any> | null
  notes?: string
  isDone?: boolean
  isPublished?: boolean
  releaseDT?: string | null
  design?: {
  fileUrl?: string | null
} | null
  createDT?: string
  updateDT?: string
  isDeleted?: boolean | null
  deletedTS?: number | null
  /** Unix timestamp in milliseconds */
  updTS?: number
  updUID?: string
}
</details> <details open><summary><b>Response</b></summary>
export type ProjectsVersionUpdateResponse = IServerResponse<Version>

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

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

post/projects/version/update

Request

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

Query parameters

IDstring uuid required

Можно передать header ID (сервер мержит headers+query)

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
projectIDstring uuid
productIDstring uuid
IDstring uuid
titlestring
majorinteger
minorinteger
buildinteger nullable
resolvedBugsobject nullable
notesstring
isDoneboolean
isPublishedboolean
releaseDTstring date-time nullable
createDTstring date-time
updateDTstring date-time
isDeletedboolean nullable
deletedTSinteger nullable
updTSinteger

Unix timestamp in milliseconds

updUIDstring

Response

OK — IServerResponse<Version>

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.