Relations
🔒 Создание связи между двумя сущностями (задача, баг, фича, митинг).
Создание связи между двумя сущностями (задача, баг, фича, митинг).
Access: authorized (10 ) · Scope: write
Allows: task:relations, task:read, feature:update, feature:read, meeting:update, meeting:read (все обязательны; проверка в команде по ресурсу из запроса)
TypeScript (copy-paste)
POST /relation/create
<details open><summary><b>Body (Partial)</b></summary>// Patch-body: все поля опциональны (Valid.Patch)
export type RelationCreateBody = Partial<Relation>
export interface RelationCreateBodyFields {
cID?: string
ID?: string
fromID?: string
fromType?: string
toID?: string
toType?: string
type?: RelationType
note?: string | null
meta?: Record<string, any> | null
/** Unix timestamp in milliseconds */
updTS?: number
updUID?: string
}
</details>
<details open><summary><b>Response</b></summary>
export type RelationCreateResponse = IServerResponse<Relation>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
post/relation/create
Request
- Base URL: http://localhost
- URL: http://localhost/relation/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<Relation>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.