Skip to main content

Update Encryption

This API updates the configuration of an existing encryption item, including its name, description, assigned users, group assignment, automatic rotation settings, and export policy.


Endpoint Details

URL /v1/crypto/items/id
Method PUT
Authorization Bearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Path

To update an existing encryption configuration, use the following request format:

/v1/crypto/items/8471d88d-feda-4d0f-bb39-7f45d8976b94

Path Parameter

ParameterTypeDescription
idUUIDUnique identifier of the encryption configuration to update

Request Body

Use the following format to make a request:

JSON Request
{
"name": "dummy 1",
"description": "",
"group_id": "81ad4d05-d11a-4809-b1f2-cc000c086730",
"assigned_user_ids": [
"0a937c60-0ed4-4d06-870a-2e284b54287d"
],
"auto_rotate": false,
"rotation_interval": "",
"exportable": true
}

Body Parameters

ParameterTypeDescription
nameStringUpdated name of the encryption configuration
descriptionStringOptional description of the encryption configuration
group_idUUIDIdentifier of the group associated with the encryption configuration
assigned_user_idsArrayList of user IDs authorized to access the encryption configuration
auto_rotateBooleanEnables or disables automatic key rotation
rotation_intervalStringAutomatic rotation interval when auto_rotate is enabled
exportableBooleanIndicates whether the encryption key can be exported

Response

Here is an example response when the data is successfully updated:

Response
{
"item": {
"id": "8471d88d-feda-4d0f-bb39-7f45d8976b94",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Dummy 1",
"algorithm": "RSA1024",
"lock_ring_id": "crypto/8471d88d-feda-4d0f-bb39-7f45d8976b94",
"current_version": 1,
"group_id": "81ad4d05-d11a-4809-b1f2-cc000c086730",
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_at": 1782274352,
"updated_at": 1783310406,
"assigned_user_ids": [
"0a937c60-0ed4-4d06-870a-2e284b54287d"
],
"exportable": true
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the encryption configuration
tenant_idUUIDIdentifier of the tenant that owns the encryption configuration
nameStringName of the encryption configuration
algorithmStringEncryption algorithm used by the configuration
lock_ring_idStringInternal identifier associated with the encryption configuration
current_versionIntegerCurrent version of the encryption configuration
group_idUUIDIdentifier of the associated group
created_byUUIDIdentifier of the user who created the configuration
updated_byUUIDIdentifier of the user who last updated the configuration
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format
assigned_user_idsArrayList of user IDs assigned to the encryption configuration
exportableBooleanIndicates whether the encryption key can be exported

info
  • A valid Bearer Token is required to access this endpoint.
  • The id path parameter must reference an existing encryption configuration.
  • Only the configuration settings can be updated. The encryption algorithm and existing key material are not modified by this endpoint.
  • If auto_rotate is set to true, specify a valid value for rotation_interval.
  • Supported rotation interval units are:
    • m = Minute.
    • h = Hour.
    • d = Day.
    • w = Week.
    • M = Month.
    • y = Year.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.