curl -X PUT https://api.portkey.ai/v1/secret-references/SECRET_REFERENCE_ID \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "updated-secret-name",
"secret_path": "prod/api-keys/updated"
}'{}Update Secret Reference
PUT
/
secret-references
/
{secretReferenceId}
curl -X PUT https://api.portkey.ai/v1/secret-references/SECRET_REFERENCE_ID \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "updated-secret-name",
"secret_path": "prod/api-keys/updated"
}'{}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-feat-byteplus-provider.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Path Parameters
UUID or slug of the secret reference
Body
application/json
Required string length:
1 - 255Maximum string length:
1024Merged with existing config, validated against existing manager_type
Maximum string length:
1024Maximum string length:
255When true, all workspace-specific mappings are purged
Replaces existing workspace mappings. Automatically sets allow_all_workspaces to false.
Minimum array length:
1Show child attributes
Show child attributes
Response
Successful response
The response is of type object.
Last modified on May 24, 2026
Was this page helpful?
⌘I

