Skip to main content
PATCH
/
org
/
secrets
/
{secretId}
Update an organization secret
curl --request PATCH \
  --url https://api.onecli.sh/v1/org/secrets/{secretId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "value": "<string>",
  "hostPattern": "<string>",
  "pathPattern": "<string>",
  "injectionConfig": {}
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

secretId
string
required

Body

application/json
name
string
Required string length: 1 - 255
value
string
Required string length: 1 - 10000
hostPattern
string
pathPattern
string | null
injectionConfig
object

Configuration for how the gateway injects this secret into outbound requests.

Response

Secret updated

success
boolean