Privicore
  1. Directory
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
    • Register OAuth Application
    • Retrieve OAuth app configuration
    • Request OAuth app authorization code
    • Retrieve OAuth app authorization code
    • Obtain OAuth app access token
    • OAuth application list
    • Retrieve OAuth application scope
    • Refresh OAuth app access token
  • Public key
    • Generate your private and public keys
    • Register public key
    • Retrieve public key
    • Retrieve CAB public key
  • Data Token
    • Reserve token space
    • Retrieve temporary data token
    • Exchange data for token
    • Upstream file via stream auth
    • Request data via token
    • Download data
    • Configure information security risk meta
    • Configure file meta
    • List data tokens
    • Update data token
    • Delete data
  • Device
    • 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
    • Register storage device
    • List storage devices
    • Synchronize device
    • Remove storage
  • Verified authenticator
    • Register authenticator
    • List verified authenticators
    • Retrieve voting strategy
    • Set quorum size
    • Set quorum strategy
    • Set voting time limit
    • Set maximum voting attempts
    • Remove authenticator
  • Policy
    • List policy templates
    • Register policy
    • List active policies
    • List inactive policies
    • Activate policy
    • Deactivate policy
    • Delete policy
  • Directory
    • Register Directory
      POST
    • Retrieve owned Directories
      GET
    • Retrieve assigned directories
      GET
    • Retrieve Directory
      GET
    • Create Directory User
      POST
    • Update user information
      POST
    • Invite Profile
      POST
    • Set profile password
      POST
    • List Directory Invites
      GET
    • Process Invitation
      POST
    • Retrieve directory profile
      GET
    • List directory users
      GET
    • Directory profiles info
      GET
    • Create profile device
      POST
    • Add storage device to profile
      POST
    • List directory devices
      GET
    • Create directory voting pool
      POST
    • Store directory meta information
      POST
  • Voting
    • Create voting
    • Check pool status
  1. Directory

Create Directory User

POST
/directory/create-user
Directory
Create a profile inside given directory

Request

Header Params
X-DPT-AUTHORIZATION
string 
required
Profile authorization token.
Example:
Body Params application/x-www-form-urlencoded
directoryId
string 
required
Example:
username
string 
required
Example:
password
string 
required
Example:
confirmPassword
string 
required
Example:
familyName
string 
optional
Example:
givenName
string 
optional
Example:

Request 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://stage.privicore.com:9009/directory/create-user' \
--header 'X-DPT-AUTHORIZATION;' \
--data-urlencode 'directoryId=' \
--data-urlencode 'username=' \
--data-urlencode 'password=' \
--data-urlencode 'confirmPassword='

Responses

🟢202Accepted
application/json
Command accepted.
Use DPT CAB websocket server to subscribe to your profile channel via authorization token and receive command status messages.
Headers
X-DPT-CAB-ID
string 
optional
Response command id.
Body
array[string]
optional
Example
[
  "string"
]
🟠401Unauthorized
🟠422Parameter Error
Previous
Retrieve Directory
Next
Update user information
Built with