Skip to main content
POST
Create action draft pull request

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required

The project the credential is bound to. Read it from GET /connection.

actionId
string<uuid>
required

UUID of the action.

Body

application/json
draftId
string<uuid>

The current draft version id from the draft read; refused with draft_not_latest if a newer draft replaced it.

sourceId
string<uuid>

A content source id from GET /projects/{projectId}/setup/content-sources, for a page no source covers.

filePath
string

The repo file to edit or create, under the source's folder, when DevTune cannot find or name it. GitHub sources only.

Required string length: 1 - 1000
pagePath
string

The GitBook page path to edit or create, below the space root, such as guides/quickstart, when DevTune cannot find or name it. GitBook sources only.

Required string length: 1 - 1000

Response

Action draft pull request

data
object
required
meta
object
required

Sent beside data on every successful response that returns data.