Subscribe
POST
https://Example-Server.com/be/v1/subscriptions
Last modified:2025-05-08 12:00:04
On the ROCKIT Edge the following event types are present (where each type has multiple different events):
1.
dltar
)The import request task has been submitted to the ROCKIT Edge processing pipeline.
The import request task has started.
The import request has ended (successfully).
The import request has failed.
The import request failed due to a wrong user input.
2.
mkraw
)The build task has been submitted to the processing pipeline.
The build task has started.
The build task has ended (successfully).
The build task has failed.
The build task failed due to a wrong user input.
3.
deploy
)The publish task has been submitted to the ROCKIT Edge processing pipeline.
The publish task has ended successfully. The new ROCKIT image and patch files are available on the CDN origin(s). Old files will be removed in 24 hours.
The publish task has ended (successfully).
The publish task has failed. The associated app is still locked until the issue has been resoled.
Webhook Specifications
When subscribing to an event as webhook please define the URL which will be called by ROCKIT Edge such as
https://www.acme.com/webhooks/import-build
Request Header | Descriptions |
---|---|
Content-type | application/json |
x-rockit-subscriptions | JWT can be verified with the secret obtained from POST /be/v1/subscriptions . |
Webhook Request Body
type
enum<string>
required
Allowed values:
dltarmkrawdeploy
event
enum<string>
required
Allowed values:
submitbeginenderror
orgName
string
required
appName
string
required
exception
object
optional
httpDownloadFailed
object
optional
dltar
.fileReadFailed
object
optional
mkraw
.error
object
optional
deploy
.deployment
object
optional
Slack
Register Subscriptions
/be/v1/subscriptions
. The content of the message will carry the same payload as for the webhook in a more human readable format.Required Permissions
subscriptions.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