Providers

Replace a provider configuration

Changed on

Required scope: provider

put/api/v1/providers/{provider_id}

Request

  • Base URL
    http://localhost:6185
  • URL
    http://localhost:6185/api/v1/providers/{provider_id}
  • Auth
    API key in header X-API-Key

Path parameters

provider_idstring required

Request body

idstring
provider_source_idstring
capability'chat' | 'agent' | 'stt' | 'tts' | 'embedding' | 'rerank' | 'decision'
enabledboolean
configDynamicConfig required

Response

Standard AstrBot success response

status'ok' required
messagestring
dataunknown required

Changes