---
title: "POST /v1/sdks/repository"
method: POST
path: "/v1/sdks/repository"
tags: ["sdks"]
---

# POST /v1/sdks/repository

`POST /v1/sdks/repository`

Links an SDK language target to a github repository

## Request body

- object
  - `uid` string, required
  - `language` 'typescript' | 'python' | 'cli' | 'csharp' | 'java' | 'ruby' | 'php' | 'go' | 'rust' | 'kotlin' | 'swift' | 'cpp' | 'dart', required
  - `repositoryId` number, required
  - `baseBranch` string, required
  - `prereleaseType` string

## Response `200`

Default Response

- object
  - `repo` string, required
  - `branch` string, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

## Changes

- **2026-08-07** `8dff1e93bc68` — 1 info
  - api operation id `postv1SdksRepository` removed and replaced with `postV1SdksRepository`
- **2026-07-26** `8586b0646aa3` — 1 breaking, 3 info
  - the response's body type/format changed from `null`/`` to `object`/`` for status `200`
  - added the new optional request property `prereleaseType`
  - added the required property `branch` to the response with the `200` status
  - added the required property `repo` to the response with the `200` status

[Change history](https://skmtc.dev/scalar/apis/core/changes/v1/sdks/repository/post.md)

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/2c53f2191a3e/schema)
