Deployment
Create Deployment
POST https://api.gmetri.com/sdk/deployment/create
Create deployment for the project.
Headers
Authorization*
String
Token <apiToken>
Request Body
orgSlug*
String
Unique slug of the organization
projUuid*
String
Unique identifier of the project(UUID format)
deploymentSlug
String
Unique slug of the deployment
{
"status": {
"success": true
},
"data": {
"id": 11,
"live": true,
"slug": "test7__1_",
"settings": {
"id": 1666290966851,
"type": "deployment",
"props": {
"deployment_version": 1
}
},
"created_at": "2022-10-20T18:23:20.73652",
"modified_at": "2022-10-20T18:23:20.73652",
"organization_id": 6,
"project_id": 33,
"viewer_group_id": 3
}
}Get Deployment
POST https://api.gmetri.com/sdk/deployment/get
Get deployment by id
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
Unique identifier of the project(UUID format)
deploymentId*
Number
Unique id of the deployment
Get All Deployment
POST https://api.gmetri.com/sdk/deployment/getAll
Get all deployment by project uuid
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
Update Deployment
POST https://api.gmetri.com/sdk/deployment/update
Update deployment details by deployment.id
Headers
Authorization*
String
Request Body
orgSlug*
String
deploymentId*
Number
Unique id of the deployment
slug
String
New deployment slug
settings
Object
RecordNode<RT.deployment>
viewerGroupId
Number
Unique id of the Viewer group this deployment belongs to
live
Boolean
set true will make deployment live and false will make it idle/inactive
Delete Deployment
POST https://api.gmetri.com/sdk/deployment/delete
Delete deployment by id
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
deploymentId*
Number
Unique id of the deployment
Last updated
Was this helpful?

