v1

latestOpenAPI 3.0.32026-07-17136180270.3 KB
Credentials

Start GitHub device code flow

Start GitHub device code flow. Accepts a JSON request body when defined and returns the resulting resource or action status.

post/api/projects/{projectId}/credentials/github-git/device-code

Path parameters

projectIdstring required

Project identifier used to scope the request.

Request body

enterpriseUrlstring

enterprise Url value for the git Hub Device Code Request object.

scopesstring[]

Collection of scope values.

Response

Device code

deviceCodestring required

device Code value for the git Hub Copilot Device Code Response object.

userCodestring required

user Code value for the git Hub Copilot Device Code Response object.

verificationUristring required

verification Uri value for the git Hub Copilot Device Code Response object.

expiresIninteger required

expires In value for the git Hub Copilot Device Code Response object.

intervalinteger required

interval value for the git Hub Copilot Device Code Response object.

domainstring required

domain value for the git Hub Copilot Device Code Response object.