Projects: Tasks

🔒 Создание новой задачи в проекте.

Создание новой задачи в проекте.

Access: authorized (10 ) · Scope: write

Allows: task:create (все обязательны; ресурс — fields.productID)

TypeScript (copy-paste)

POST /projects/task/create

<details open><summary><b>Body (Partial)</b></summary>
// Patch-body: все поля опциональны (Valid.Patch)
export type ProjectsTaskCreateBody = Partial<Task>

export interface ProjectsTaskCreateBodyFields {
  fields?: {
  cID: string
  projectID: string
  productID: string
  versionID?: string | null
  featureID?: string | null
  ID: string
  status: TaskStatus
  state: TaskState
  category: TaskCategory
  type: TaskType
  priority: TaskPriority
  urgently?: number | null
  title: string
  searchTitle: string
  key: number
  currentAssignee: string
  ord: number
  spec: string
  gist?: string | null
  modules?: Record<string, any> | null
  components?: Record<string, any> | null
  approvalAssignee?: string | null
  workAssignee: string
  workIterationKey?: number | null
  workTimePlan?: number | null
  workEvaluation?: number | null
  reviewAssignee?: string | null
  testAssignee?: string | null
  resolutionVersionID?: string | null
  resolutionType?: TaskResolutionType | null
  resolutionNote?: string | null
  result?: string | null
  meta?: Record<string, any> | null
  git?: Record<string, any> | null
  createDT: string
  creatorUID: string
  stage: TaskStageType
  browser?: TaskBrowser | null
  bugType?: TaskBugType | null
  build?: string | null
  devices?: Array<any> | null
  labels?: Array<any> | null
  fuzzy?: boolean | null
  updTS: number
  isDeleted?: boolean | null
  deletedTS?: number | null
  updUID: string
  rejectUID?: string | null
  rejectTS?: number | null
}
  relations?: Array<any> | null
}
</details> <details open><summary><b>Response</b></summary>
export type ProjectsTaskCreateResponse = IServerResponse<Task>

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

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

post/projects/task/create

Request

  • Base URL: http://localhost
  • URL: http://localhost/projects/task/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

Response

OK — IServerResponse<Task>

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.