Skip to content

Renames a provider, changes its endpoint and/or rotates its credential in place.

PATCH
/v1/m/sessions/providers/{ref}
curl --request PATCH \
--url https://example.com/v1/m/sessions/providers/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api_key": "example", "base_url": "example", "default_model": "example", "display_name": "example" }'

Renames a provider, changes its endpoint and/or rotates its credential in place.

ref
required
string

Path parameter ref.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
api_key
Any of:

Rotates the credential in place: it reseals under the SAME reference, so every profile bound to this provider keeps working and the NEXT launch uses the new value — a session already running keeps the one it started with. The previous connection test is cleared, because a verdict measured on a credential that no longer exists is not evidence about the one replacing it.

string
>= 8 characters
base_url
Any of:

An explicit string replaces the stored endpoint; null/omission preserves it.

string
default_model
Any of:

An explicit model replaces the saved default for fresh sessions; empty clears it, null/omission preserves it. Does not rotate credentials or change the last connection test.

string
display_name
Any of:

An explicit string replaces the stored name; null/omission preserves it.

string
Example generated
{
"api_key": "example",
"base_url": "example",
"default_model": "example",
"display_name": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}