Privicore
  1. Data Token
Privicore
  • Privicore API
  • Utility
    • Utility
    • Check server health
      GET
    • Request command id status
      GET
  • Profile
    • Profile Model and Authentication Workflow
    • Register new profile
      POST
    • Authenticate
      POST
    • Retrieve profile id
      GET
    • Change password
      POST
    • Generate qr token for authorization
      POST
    • Reauthorize authorization token
      POST
    • Revoke authorization token
      POST
    • Retrieve token expiry
      POST
  • OAuth Application
    • OAuth Application Management
    • Register OAuth Application
      POST
    • Retrieve OAuth app configuration
      POST
    • Request OAuth app authorization code
      GET
    • Retrieve OAuth app authorization code
      POST
    • Obtain OAuth app access token
      POST
    • OAuth application list
      GET
    • Retrieve OAuth application scope
      GET
    • Refresh OAuth app access token
      POST
  • Public key
    • Public and Private Key Management
    • Generate your private and public keys
    • Register public key
    • Retrieve public key
    • Retrieve CAB public key
  • Data Token
    • Data Token Management
    • Reserve token space
      POST
    • Retrieve temporary data token
      GET
    • Exchange data for token
      POST
    • Upstream file via stream auth
      POST
    • Request data via token
      POST
    • Download data
      GET
    • Configure information security risk meta
      POST
    • Configure file meta
      POST
    • List data tokens
      GET
    • Update data token
      POST
    • Delete data
      POST
  • Device
    • Device Management
    • Request unique identifier (i.e. Register new device)
    • Retrieve unique identifier
    • Retrieve profile devices
    • Configure device meta
    • Approve device
    • Reject device
    • Retrieve device configuration
    • Remove device
  • Storage
    • Storage Device Management
    • Register storage device
    • List storage devices
    • Synchronize device
    • Remove storage
  • Verified authenticator
    • Authenticator and Voting Management
    • Register authenticator
    • List verified authenticators
    • Retrieve voting strategy
    • Set quorum size
    • Set quorum strategy
    • Set voting time limit
    • Set maximum voting attempts
    • Remove authenticator
    • Register voting configuration
    • Update voting configuration
    • List voting configurations
    • Retrieve voting configuration
  • Policy
    • List policy templates
    • Register policy
    • List active policies
    • List inactive policies
    • Activate policy
    • Deactivate policy
    • Delete policy
    • List registered policies
    • Retrieve registered policy
  • Directory
    • Register Directory
    • Retrieve owned Directories
    • Retrieve assigned directories
    • Retrieve Directory
    • Create Directory User
    • Update user information
    • Invite Profile
    • Set profile password
    • List Directory Invites
    • Process Invitation
    • Retrieve directory profile
    • List directory users
    • Directory profiles info
    • Create profile device
    • Add storage device to profile
    • List directory devices
    • Create directory voting pool
    • Store directory meta information
  • Voting
    • Create voting
    • Check pool status
  • Schemas
    • Response
      • CommandAccepted
      • Unauthorized
      • ValidationErrors
    • Schemas
    • profileId
    • deviceIdentifier
    • directoryId
    • directoryName
    • directoryShortName
    • givenName
    • familyName
    • createdAt
    • meta
  1. Data Token

Update data token

POST
/data-token/update-data

Overview#

Update the data and metadata associated with an existing data token. This allows you to replace the stored data or modify token metadata without creating a new token.

Update Data Token#

Endpoint: POST /data-token/update-data
Authentication: Required (Authorization token obtained from the step)
Content-Type: application/json

Request Parameters#

ParameterTypeRequiredDescription
dataTokenstringYesThe token identifier to update
datastringYesNew encrypted data to replace existing data
metaobjectNoMetadata object containing configuration
meta.information_security_riskobjectNoSecurity classification metadata
meta.fileobjectNoFile metadata
meta.dataobjectNoData type metadata

Use Case#

Use this endpoint when you need to update data associated with an existing token or modify its metadata. This is useful for:
Replacing outdated data while maintaining the same token identifier
Updating metadata as security classifications or file attributes change
Correcting metadata without re-exchanging data
Maintaining stable token references across data updates
The new data follows the same encryption and routing process as initial exchange: encrypted by Privicore and distributed to registered devices.
The token must be a permanent token (data already exchanged)
New data should be encrypted by the application before update
Metadata updates are optional - omit fields to leave them unchanged
Update operations replace existing data and metadata entirely

Request

Authorization
API Key
Add parameter in header
X-DPT-AUTHORIZATION
Example:
X-DPT-AUTHORIZATION: ********************
or
Header Params

Body Params application/json

Example
{
    "dataToken": "MDE5NzgzM2ItMTI5Mi02OThmLWIxZTktMDExNjBmMDgwNjNiOjAxOTgxY2MwLTlkNjMtMTE3Yy1kNTM3LWFjYWVmMjE3ZmZiNQ==",
    "data": "updated-data",
    "meta": {
        "information_security_risk": {
            "classification": "top-secret",
            "label": "test-label",
            "handling": "test-handling"
        },
        "file": {
            "fileName": "example-filename",
            "context": "example-context",
            "extension": "jpg",
            "size": 123837,
            "path": "/path/to/file"
        },
        "data": {
            "type": "cloud-drive"
        }
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.privicore.com:9009/data-token/update-data' \
--header 'X-DPT-AUTHORIZATION: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "dataToken": "MDE5NzgzM2ItMTI5Mi02OThmLWIxZTktMDExNjBmMDgwNjNiOjAxOTgxY2MwLTlkNjMtMTE3Yy1kNTM3LWFjYWVmMjE3ZmZiNQ==",
    "data": "updated-data",
    "meta": {
        "information_security_risk": {
            "classification": "top-secret",
            "label": "test-label",
            "handling": "test-handling"
        },
        "file": {
            "fileName": "example-filename",
            "context": "example-context",
            "extension": "jpg",
            "size": 123837,
            "path": "/path/to/file"
        },
        "data": {
            "type": "cloud-drive"
        }
    }
}'

Responses

🟢202Success
This response does not have a body.
🟠401401
🟠422422
Modified at 2025-12-23 17:23:59
Previous
List data tokens
Next
Delete data
Built with