For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • GETGet models summary
      • POSTFilter models summary
      • GETList models with filters
      • POSTFilter models
      • GETList public model catalog
      • GETList models
      • POSTCreate or update a custom model
      • GETRetrieve a model
      • PATCHUpdate a custom model
      • DELDelete a custom model
      • GETList custom providers
      • POSTCreate a custom provider
      • GETRetrieve a custom provider
      • PATCHUpdate a custom provider
      • DELDelete a custom provider
      • PUTReplace a custom model
      • PUTReplace a custom provider
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceModels

Update a custom provider

PATCH
https://api.respan.ai/api/providers/:provider_id/
PATCH
/api/providers/:provider_id/
$curl -X PATCH https://api.respan.ai/api/providers/provider_id/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "custom-provider-123",
3 "provider_id": "custom-provider-123",
4 "provider_name": "Custom AI Provider",
5 "extra_kwargs": {
6 "base_url": "https://api.customprovider.com/v1"
7 },
8 "created_at": "2024-04-10T12:00:00Z",
9 "updated_at": "2024-04-20T15:45:00Z"
10}

Partially update editable fields for a custom provider. The provider_id field is read-only.

Was this page helpful?
Previous

Delete a custom provider

Next
Built with

Path parameters

provider_idstringRequired

Custom provider string ID returned as id and provider_id in provider responses.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.

Request

This endpoint expects an object.
provider_namestringOptional

Human-readable provider name.

api_keystringOptional

Provider API key. This field is write-only and is never returned.

extra_kwargsmap from strings to anyOptional
Additional provider configuration.

Response

Updated provider.
idstring

Provider string ID. Same value as provider_id.

provider_idstring
Unique provider identifier within your organization.
provider_namestring

Human-readable provider name.

extra_kwargsmap from strings to any

Provider configuration such as base_url and timeout values. Secret values are not returned here.

created_atdatetime or null
updated_atdatetime or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error