Skip to main content
Skip table of contents

Project templates

Contents

List Project Templates in a Space

List of Projects Templates can only be obtained via a space, so in order to collect all existing Project Templates one need to iterate over spaces requesting project templates for each space. For more details on document model see:

Below is an endpoint returning Project Templates for a particular space.

Endpoint:

URL

/api/v2/spaces/$space_id/projects/templates/

Method

GET

Expected response code

200

Expected response type

JSON

URL parameters:

  • space_id – ID of a space to list project templates for.

Example:

BASH
space_id=ccdaa098-7758-11ee-a909-1397b0b24186

curl -v \
    -H "Authorization: apikey $API_USER:$API_KEY" \
    $COREDATA_BASE_URL/api/v2/spaces/$space_id/projects/templates/

Example response:

Space's Project Templates list JSON
JSON
{
    "meta": {
        "limit": 20,
        "next": null,
        "offset": 0,
        "previous": null,
        "total_count": 9
    },
    "objects": [
        {
            "caption_plural": "templates_labels:Programme_plural:",
            "caption_singular": "templates_labels:Programme_singular:",
            "dynatype": {
                "id": "0902a476-7759-11ee-873f-c789fe68ab96",
                "title": "Programme"
            },
            "id": "092db53a-7759-11ee-afa0-8f1d36f4284b",
            "path": "/domain/templates/projects/Programme",
            "resource_uri": "",
            "title": "Programme",
            "type": "Project",
            "version": "0.2"
        },
        {
            "caption_plural": "templates_labels:Survey_plural:",
            "caption_singular": "templates_labels:Survey_singular:",
            "dynatype": {
                "id": "2663d9ae-7759-11ee-873f-9f0fe47c4b60",
                "title": "Survey"
            },
            "id": "2692d574-7759-11ee-afa0-534a4fe00a05",
            "path": "/domain/templates/projects/Survey",
            "resource_uri": "",
            "title": "Survey",
            "type": "Project",
            "version": "0.1"
        },
        // ...
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.