API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Update Config
PUT
/
configs
/
{slug}
Copy
Ask AI
portkey = Portkey()
# Update the configuration
updated_config = portkey.configs.update(
slug="CONFIG_SLUG",
name="Updated Config",
config={
"retry": {
"attempts": 3
},
"cache": {
"mode": "semantic"
}
}
)
print(updated_config)
Copy
Ask AI
{
"success": true,
"data": {
"version_id": "abe447e2-f6aa-4229-93b7-8ee3183b6667"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200 - application/json
Config updated successfully
The response is of type object
.
Was this page helpful?
Copy
Ask AI
portkey = Portkey()
# Update the configuration
updated_config = portkey.configs.update(
slug="CONFIG_SLUG",
name="Updated Config",
config={
"retry": {
"attempts": 3
},
"cache": {
"mode": "semantic"
}
}
)
print(updated_config)
Copy
Ask AI
{
"success": true,
"data": {
"version_id": "abe447e2-f6aa-4229-93b7-8ee3183b6667"
}
}
Assistant
Responses are generated using AI and may contain mistakes.