ROCKITPLAY API
  1. Backend Edge Organizations
ROCKITPLAY API
  • ROCKIT Edge - Admin API
    • Minimal Tests
      • ping
      • submit test task
    • Admin Edge Organizations
      • Create Organization
      • Delete Organization
  • ROCKIT Edge - Backend API
    • Backend Edge Organizations
      • Create Organization
        POST
      • Delete Organization
        DELETE
    • Authentication
      • user login
      • authentication
    • Account Management
      • get user details
      • list users
      • Modify user
      • delete users
      • Create User / Create Machine User
    • Deployments
      • Creating Deployments
      • Get Deployments
      • Get Deployment Details
      • Modify Deployment
      • Deleting Deployments
    • Apps
      • Creating Apps
      • Import native builds
      • App Details
      • List Apps
      • patch app
      • Delete Apps
    • Triggers
      • Process Traces
      • Retry Task
    • Tasks
      • Listing Tasks
      • Task Details
      • Acknowledge Warning / Expire Task
    • Subscriptions
      • Subscribe
      • List Subscriptions
      • Unsubscribe
    • Roles
      • List Roles
      • Create Role
      • Patch Role
      • Role Details
      • Delete Roles
  • Changelog
    • Changelog
  1. Backend Edge Organizations

Create Organization

POST
https://Example-Server.com/be/v1/orgs
Last modified:2025-03-31 07:46:34

This endpoint enables the creation of a new organization in the ROCKIT Backend Edge, including a default 'Administrators' role and an associated primary administrator user. Upon successful creation, the response includes the initial password for the administrator user.

Authentication is required via the x-rockit-beauth-token header, which must contain a valid administrator token for the ROCKIT Backend Edge.

Generating a public/private keypair

  1. ssh-keygen -t rsa -b 4096 -m PEM -f .rockitplay.priv.pem
  2. rm .rockitplay.priv.pem.pub (optional)
  3. openssl rsa -in .rockitplay.priv.pem -pubout -outform PEM -out .rockitplay.pub.pem

Request

Header Params
x-rockit-beauth-token
string 
required
ROCKIT Edge backend auth token generated by POST auth.
Example:
{{_edge_org_admin_beauth_token}}
Body Params application/json
name
string 
required
Unique and immutable identifier of the organization, which is to be created. Typically the name of the organization.
Match pattern:
/^[A-Za-z0-9_]{2,50}$/
label
string 
required
Human readable label for the organisation. Typically the name of the organization.
username
string 
required
Unique and immutable identifier of the admin user. Typically the name of the admin user.
email
string 
required
Email adress of the user.
title
string 
optional
Title of the user. Optional parameter.
firstname
string 
required
Firstname of the user.
surname
string 
required
Surname of the user.
dxorglnk
string 
required
orgPrivPemB64
string 
optional
64 bit encoded private key. Optional parameter to create an organization, but mandatory if th org need to be able to start game session.
orgPrivPW
string 
optional
PrivateKey Password. Optional parameter to create an organization, but mandatory if th org need to be able to start game session.
Example
{
  "name": "{{EDGE_ORG_NAME}}",
  "label": "{{EDGE_ORG_LABEL}}",
  "username": "{{EDGE_ORG_ADMIN_USERNAME}}",
  "email": "{{EDGE_ORG_ADMIN_EMAIL}}",
  "firstname": "{{EDGE_ORG_ADMIN_FIRSTNAME}}",
  "surname": "{{EDGE_ORG_ADMIN_SURNAME}}",
  "dxorglnk": "{{EDGE_DXORGLNK}}",
  "orgPrivPemB64": "{{EDGE_ORG_PRIV_PEM_B64}}",
  "orgPrivPW": "{{EDGE_ORG_PRIV_PW}}"
}

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://Example-Server.com/be/v1/orgs' \
--header 'x-rockit-beauth-token: eyjhvcIhvds;huVODV...' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name" : "ExampleOrg",
    "label" : "Example Organization",
    "username" : "adminUser",
    "email" : "admin@example.org",
    "firstname" : "John",
    "surname" : "Doe",
    "dxorglnk" : "dxorglnk.ExampleOrg.jAhjafhdsaAS....",
    "orgPrivPemB64" : "HhdsjSDsdfJF...",
    "orgPrivPW" : "examplePrivateKeyPassword"
}'

Responses

🟢200200: success
application/json
Body
status
string 
required
Indicating that the organization was created successfully.
message
string 
required
A confirmation message such as "organization created" confirming the successful creation.
adminPW
string 
required
Returns the initial password for the organization's primary administrator user, which is necessary for the login.
Example
{
  "status": "success",
  "message": "organization created",
  "adminPW": ":0-)IrG:kLDvr2"
}
🟠400400: invalid-param
🟠401401: unauthorized
🟠409409: item-exists
Previous
ROCKIT Edge - Backend API
Next
Delete Organization
Built with