/vcs-connections (POST)
POST
/vcs-connections
const url = 'https://example.com/api/v1/vcs-connections';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"kind":"oauth","provider":"github","accountLogin":"example","token":"example","refreshToken":"example","expiresAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/vcs-connections \ --header 'Content-Type: application/json' \ --data '{ "kind": "oauth", "provider": "github", "accountLogin": "example", "token": "example", "refreshToken": "example", "expiresAt": "2026-04-15T12:00:00Z" }'Request Body required
Section titled “Request Body required ” Media type application/json
Any of:
Responses
Section titled “ Responses ”Default Response
Media type application/json
object
id
required
string
accountLogin
required
string
createdAt
required
string format: date-time
Example
{ "provider": "github", "kind": "github_app"}Default Response
Media type application/json
object
type
required
string
title
required
string
status
required
integer
code
required
string
detail
string
instance
string
errors
Array<object>
object
path
required
string
message
required
string
Example generated
{ "type": "example", "title": "example", "status": 1, "code": "example", "detail": "example", "instance": "example", "errors": [ { "path": "example", "message": "example" } ]}