from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update a specific provider
updated_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>"
}
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Update a specific provider
updated_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
Successful response
The response is of type object
.
Was this page helpful?