Python
Default
from portkey_ai import Portkey# Initialize the Portkey clientportkey = Portkey( api_key="PORTKEY_API_KEY",)# Update a specific providerupdated_provider = portkey.providers.update( slug="PROVIDER_SLUG", name="updated-name", note="updated-note", workspace_id="")print(updated_provider)
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "slug": "<string>" }
Provider slug
optional, needed when using organisation admin keys
Show child attributes
{ "credit_limit": 10, "periodic_reset": "monthly", "alert_threshold": 8}
Successful response
Was this page helpful?