Saltar al contenido principal
POST
CSharp (SDK)

Autorizaciones

Authorization
string
header
requerido

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Encabezados

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parámetros de ruta

session_id
string
requerido

Cuerpo

application/json

Solicitud de operación pública.

Deliberadamente no tiene campo de repositorio: el repositorio es el enlace de clonación de la sesión. La rama principal es la del llamante, es decir, la rama que el agente envió.

branch
string
requerido
Required string length: 1 - 255
title
string
requerido
Required string length: 1 - 256
body
string
predeterminado:""
Maximum string length: 65536
base
string | null
Required string length: 1 - 255
draft
boolean
predeterminado:false
checkout_path
string
predeterminado:""
Maximum string length: 512

Respuesta

Respuesta Exitosa

session_id
string
requerido
repository_id
integer
requerido
owner
string
requerido
repository
string
requerido
number
integer
requerido
url
string
requerido
state
string
requerido
draft
boolean
requerido
head_branch
string
requerido
base_branch
string | null
requerido
created
boolean
requerido