Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Body

application/json

One repository object, or an array of repository objects to add in one request.

full_name
string
required
installation_id
integer
required

Provider installation ID (for example the GitHub App installation) that has access to the repository. Required for github, gitlab, bitbucket and azure_repos; it must belong to the organization.

provider
string
default:github
tags
string[]

Enterprise asset labels for RBAC scoping. Requires the Enterprise plan.

business_unit
string | null

Enterprise asset label for RBAC scoping. Requires the Enterprise plan.

Response

Repositories added.

repositories
object[]
required
azure_hook_setup
object[]

Azure DevOps repositories whose service-hook setup did not complete; present only on 207 responses.