Deployment

Deployment Schema
  • id: Unique id for every deployment

  • live: Active/Inactive state of deployment

  • slug: Unique string of deployment across project

  • settings: Deployment setting object

  • created_at: Create at timestamp

  • modified_at: Modified at timestamp

  • organization_id: Unique id of the organization this deployment belongs to

  • project_id: Unique id of the project this deployment belongs to

  • viewer_group_id: Unique id of the Viewer group this deployment belongs to

  • host_link: Open experience with more control when multiplayer mode is on

  • host_passocode: Passcode to be needed when open experience via host link

Create Deployment

POST https://api.gmetri.com/sdk/deployment/create

Create deployment for the project.

Headers

Name
Type
Description

Authorization*

String

Token <apiToken>

Request Body

Name
Type
Description

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

Name
Type
Description

Authorization*

String

Token <apiToken>

Request Body

Name
Type
Description

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

Name
Type
Description

Authorization*

String

Token <apiToken>

Request Body

Name
Type
Description

projUuid*

String

Update Deployment

POST https://api.gmetri.com/sdk/deployment/update

Update deployment details by deployment.id

Headers

Name
Type
Description

Authorization*

String

Request Body

Name
Type
Description

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

Name
Type
Description

Authorization*

String

Token <apiToken>

Request Body

Name
Type
Description

projUuid*

String

deploymentId*

Number

Unique id of the deployment

Last updated

Was this helpful?