Skip to main content

The block resource provides details about each pushed version of a block. Block versions relate to a Git source code branch, with the default branch being the 'master' branch.

Properties

Name Type Format Description
id string The block identifier
projectId string The project identifier
branches object[] Array of branches
branches.id string The id of the branch
branches.versions object[] Array of Block version details
branches.versions.versionNo string versionNo The block version number
branches.versions.status.broken boolean Whether the block has been marked as broken
branches.versions.status.deployment string Deployment status The block deployment status
branches.versions.status.running string Running status The block running status
branches.versions.status.workflow string Workflow status The block workflow status

Example response

JSON
{ 
    "id": "movie-listing",
    "projectId": "movieDb",
    "branches": [
        {
            "id": "master",
            "versions": [                
                {
                    "versionNo": "1.1",
                    "status": {
                        "broken": false, 
                        "deployment": "Deployed",      
                        "running": "Pending",
                        "workflow": "Draft",
                    }
                },
                {
                    "versionNo": "1.0",
                    "status": {
                        "broken": false, 
                        "deployment": "Deployed",      
                        "running": "Available",
                        "workflow": "Released",
                    }    
                },
                {
                    "versionNo": "0.2",
                    "status": {
                        "broken": false, 
                        "deployment": "Deprecated",      
                        "running": "Stopped",
                        "workflow": "Draft",
                    }    
                },
                {
                    "versionNo": "0.1",
                    "status": {
                        "broken": true, 
                        "deployment": "Deprecated",      
                        "running": "Stopped",
                        "workflow": "Draft",
                    }  
                }

            ]
        },
        {
            "id": "feature-redesign-2019",
            "versions":[
                {
                    "versionNo": "0.3",
                    "status": {
                        "broken": false, 
                        "deployment": "Deployed",      
                        "running": "None",
                        "workflow": "Created",
                    }  
                },
                {
                    "versionNo": "0.2",
                    "status": {
                        "broken": false, 
                        "deployment": "Deprecated",      
                        "running": "Stopped",
                        "workflow": "Draft",
                    } 
                },
                {
                    "versionNo": "0.1",
                    "status": {
                        "broken": false, 
                        "deployment": "Deprecated",      
                        "running": "Stopped",
                        "workflow": "Draft",
                    } 
                }
            ]
        }
    ]
}

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request