---
title: "PATCH /v1/orgs/{orgId}/byo-provider"
method: PATCH
path: "/v1/orgs/{orgId}/byo-provider"
tags: ["ByoProvider"]
---

# PATCH /v1/orgs/{orgId}/byo-provider

`PATCH /v1/orgs/{orgId}/byo-provider`

Partially updates the organization's own LLM provider. Every field is optional, including `credential`: omit it and the stored one is used. Validation runs against the merged result. Gateway validation only runs when connection details, models, or enabled state require it. A partial `tierModels` is merged over the stored tier selection.

## Path parameters

- `orgId` string, uuid, required

## Headers

- `Authorization` string

## Request body

- object
  - `baseUrl` string — HTTPS gateway base URL ending in /v1, without user information, a query, or a fragment.
  - `credential` string
  - `enabledModels` string[]
  - `tierModels` object — Tier to model, in the customer's own model names. Tessl maps each of its features to a tier; that mapping is not configurable.
    - `high` string
    - `medium` string
    - `low` string
  - `enabled` boolean

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'byo-provider', required
    - `attributes` object, required
      - `baseUrl` string, required
      - `enabledModels` string[], required
      - `tierModels` object, required
        - `high` string, nullable, required
        - `medium` string, nullable, required
        - `low` string, nullable, required
      - `enabled` boolean, required
      - `orgSlug` string, required — Immutable organization slug used as the prefix for composed gateway model names.
      - `updatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/tessl/apis/tessl-api.md) · [All operations](https://skmtc.net/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tessl/tessl-api/revisions/2fe02c07eb49/schema)
