Skip to main content
PATCH
Update secret
Updates a secret. This is a partial update (PATCH semantics) — only fields included in the request body are changed; omitted fields are left unchanged.
For ACB deployments updated from a version prior to 1.2, switch to the https://{hostname}/EkranACB server in the Playground.

Permissions required

  • Editor or Owner role on the secret for most field changes.
  • Owner role required to modify the permissions field.

Common update patterns

Changing type after creation is not supported. Create a new secret of the desired type and delete the old one if you need to convert.

Errors

See Status codes. Common errors:
  • 400 Bad Request — invalid configuration object (e.g. rotate_every_min: 0, no longer accepted in v1.4 — use enabled: false instead).
  • 403 Forbidden — user lacks Editor/Owner, or lacks Owner when modifying permissions.
  • 404 Not Found — secret doesn’t exist.

Get secret

Read current secret state.

Add secret

Field reference shared with PATCH.

Rotate password

Trigger rotation without manual value.

Data models

Schemas for nested config objects.

Authorizations

Authorization
string
header
required

Access token for authentication

Path Parameters

id
integer<int32>
required

The ID of the secret to update

Required range: x >= 1

Body

application/json
name
string

Name of the secret

Maximum string length: 512
description
string

Description of the secret

Maximum string length: 2000
password
string

The password value

ssh_key
object
parent_folder_id
integer<int32>

ID of the parent folder

Required range: x >= 0
parent_folder_name
string

Name of the parent folder

Maximum string length: 512
domain
string

Domain for AD accounts

Maximum string length: 512
computer_name
string

Computer name for Windows/Unix accounts

Maximum string length: 512
url
string<uri>

URL for web accounts

Maximum string length: 2000
server
string

Server for database accounts

Maximum string length: 512
login
string

Login username

Maximum string length: 512
computers
string[]

List of computers

file_transfer
object
rotation
object
record_activities
boolean

Whether to record activities for this secret

check_out
object
require_approval
object
permissions
object
check_password
object

Response

Secret updated successfully

id
integer<int32>
required

Unique identifier of the secret

name
string
required

Name of the secret

type
enum<string>
required

Type of secret

Available options:
None,
UnixAccountSSH,
UnixAccountTelnet,
WindowsAccount,
ADAccount,
WebAccount,
MSSQLAccount
login
string
required

Login username

description
string

Description of the secret

parent_folder_id
integer<int32>

ID of the parent folder

domain
string

Domain for AD accounts

computer_name
string

Computer name for Windows/Unix accounts

url
string

URL for web accounts

server
string

Server for database accounts

computers
string[]

List of computers

file_transfer
object
rotation
object
record_activities
boolean

Whether to record activities for this secret

check_out
object
require_approval
object
permissions
object
check_password
object
check_password_status
enum<string>

Status of the last password check (heartbeat)

Available options:
None,
Valid,
Invalid,
Failed
last_password_check_utc
string<date-time> | null

UTC timestamp of the last password check

password_rotation_status
enum<string>

Status of password rotation

Available options:
Disabled,
Enabled,
Failed
last_password_rotation_utc
string<date-time> | null

UTC timestamp of the last password rotation