Tasks

Привязать или обновить pull request

Changed on

Повторный URL обновляет существующую связь и не создаёт дубль.

post/api/v1/tasks/pull-requests

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

PullRequestCreate required

Владелец задаётся task, section или парой owner_type/owner_id.

owner_type, 'task' | 'section'
owner_id, string
task, string
section, string
provider, string
repository, string
number, string
title, string
url, string uri required
status, string
branch, string
commit_sha, string

Response

Сохранённая связь

PullRequest required
id, string uuid required
owner_type, 'task' | 'section' required
owner_id, string uuid required
owner_key, string required
owner_name, string required
provider, string required
repository, string required
number, string required
title, string required
url, string uri required
status, string required
branch, string required
commit_sha, string required
is_archived, boolean required
created_at, string required
updated_at, string required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision