Skip to navigation

Update Policy Key Sets

Replace the routing policy's key sets with exactly the ones you send. They win over the project's key sets for the same vendor.

Authentication

AuthorizationBearer

A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.

Path parameters

policy_idstringRequiredformat: "uuid"

The policy’s id.

Request

This endpoint expects an object.
key_setsmap from strings to stringsRequired

The key set used for each vendor, as {vendor: key_set_id}. A routing policy’s key set wins over its project’s for the same vendor. With no key set for a vendor, the organization’s default key serves it.

Response

The policy's updated key sets
key_setsmap from strings to strings

The key set used for each vendor, as {vendor: key_set_id}. A routing policy’s key set wins over its project’s for the same vendor. With no key set for a vendor, the organization’s default key serves it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
502
Bad Gateway Error