Creating Deployments
POST
https://Example-Server.com/be/v1/deployments
Last modified:2025-05-08 12:00:04
File structure on deployment:
GET /be/v1/apps
. It returns all relevant information to access ROCKIT images via an dxfName
as well as the available patches in an array fromBuildId
-toBuildId
. ROCKITPLAY deploys the files according to the following file structure to your origin:DxF path:
originPrefix
/dxf/orgName
/appName
/iCurBuild
/dxfName
/*Patch path:
originPrefix
/pat/orgName
/appName
/toBuildId
/fromBuildId
/*with
originPrefix: is defined when you call
POST /be/v1/deployments
orgName: "is defined when creating an organization"
appName: is defined when you call
POST /be/v1/apps
dxfName
, fromBuildId
-toBuildId
, iCurBuild
: can be obtained from GET /be/v1/apps
in paths buildIds are masked as 4 digit number, e.g. iCurBuild = 1 becomes 0001 in path
Important:
POST /be/v1/apps
and POST /be/v1/builds
).If an app tries to deploy but cannot, it will enter an error state.
Checking
GET /be/v1/apps
will show that the app is in an error state.GET /be/v1/tasks
can be used to inspect which task failed.If an app fails to deploy due to incorrect credentials or deployment issues, you can resolve it in one of the following ways:
1.
PATCH /deployments
to update the deployment with the correct credentials.2.
PATCH /apps
.Additional Notes
not contain the bucket name and contains the region, i.e.
s3.us-east-1.amazonaws.com.
Required Permissions
deployments.create
Request
Header Params
x-rockit-beauth-token
string
optional
POST /be/v1/auth
) or API key (POST /be/v1/apikeys
) Mutually excluded with
x-rockit-api-key
.Example:
{{_edge_org_admin_beauth_token}}
x-rockit-orgname
string
optional
Requires
x-rockit-username
and x-rockit-api-key
.Example:
{{EDGE_ORG_NAME}}
x-rockit-username
string
optional
Requires
x-rockit-orgname
and x-rockit-api-key
.Example:
adminPrincipal
x-rockit-api-key
string
optional
Mutually excluded with
x-rockit-beauth-token
. Requires x-rockit-username
and x-rockit-orgname
.Example:
{{_adminPrincipal_apiKey}}
Body Params application/json