PUT
/
configs
/
{slug}
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)
{
  "success": true,
  "data": {
    "version_id": "abe447e2-f6aa-4229-93b7-8ee3183b6667"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Body

application/json

Response

200 - application/json

Config updated successfully

The response is of type object.