Skip to main content
PUT
/
api
/
orchestration
/
fabric
/
{fabricId}
/
secret
/
id
/
{secretId}
Update secret
curl --request PUT \
  --url https://app.prophecy.io/api/orchestration/fabric/{fabricId}/secret/id/{secretId} \
  --header 'Content-Type: application/json' \
  --header 'X-AUTH-TOKEN: <x-auth-token>' \
  --data '
{
  "kind": "prophecy",
  "subKind": "text",
  "properties": {
    "name": "service_account_1",
    "value": "<new-value>"
  }
}
'
{
  "success": true,
  "data": {
    "id": "4656"
  }
}
Open the secret in the Prophecy UI to see which properties can be updated.

Headers

X-AUTH-TOKEN
string
required

Prophecy authentication token. Required for all API requests.

Path Parameters

fabricId
string
required

The unique ID of the parent fabric

secretId
string
required

The unique ID of the secret

Body

application/json

Secret object with updated fields

kind
enum<string>
required

Secret management provider

Available options:
prophecy
subKind
enum<string>
required

Secret sub-type

Available options:
text,
binary,
username_password,
m2m_oauth
properties
object
required

Secret properties that vary by subKind.

Find specific properties in the Secrets > Properties section of the API documentation.

Response

Secret updated successfully

success
enum<boolean>
required

Indicates the request was successful.

Available options:
true,
false
data
object

Response data containing the secret ID.