Skip to main content
PUT
/
api
/
v1
/
projects
/
{id}
/
secrets
/
{key}
Update a secret
curl --request PUT \
  --url https://api.dualship.run/api/v1/projects/{id}/secrets/{key} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Workspace-Id: <x-workspace-id>' \
  --data '
{
  "is_secret": true,
  "value": "<string>"
}
'
{
  "is_secret": true,
  "key": "API_KEY",
  "value": ""
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Headers

X-Workspace-Id
string
required

Workspace ID

Path Parameters

id
string
required

Project ID

key
string
required

Secret Key

Body

application/json

Secret details

is_secret
boolean
value
string

Response

Secret updated

is_secret
boolean
Example:

true

key
string
Example:

"API_KEY"

value
string
Example:

""