REST API: Project Templates

Replace {subdomain} in the endpoints below with your Vitally subdomain.

You can find your subdomain in the URL used to log into Vitally (i.e., https://yoursubdomain.vitally.io

The Project Template Response object

The Project Category Response object

The Project Response object

Project custom traits

In Vitally, if you are an admin, you can add additional fields to your tasks via the Traits management section. When you create a trait, we will provide you with a key for that trait:

Using this key, you can set values for this trait when POSTing to the API:

Example Request

POST https://{subdomain}.rest.vitally.io/resources/projects
{
  "templateId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "organizationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "traits": {
    "vitally.custom.nextStep": "Give em a call!"
  }
}

Note that when updating traits, if a trait is not specified, it will not be deleted from the project (i.e. the value for the trait will remain unchanged). To actually delete a trait from a project, simply specify the trait with a null value.

List Project Templates GET

US Data Center (default):

https://{subdomain}.rest.vitally.io/resources/projectTemplates

EU Data Center:

https://rest.vitally-eu.io/resources/projectTemplates

Paginated list of Project Templates ordered by updatedAt

Query Params (see Pagination)

Example Request

GET https://{subdomain}.rest.vitally.io/resources/projectTemplates?categoryId=1&limit=1

Example Response

{
  "results": [
    {
      "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "createdAt": "2022-02-O2T22:22:22.222Z",
      "updatedAt": "2022-02-O2T22:22:22.222Z",
      "name": "Onboarding - Enterprise",
      "projectName": "Onboarding",
      "projectCategoryId": "1"
    }
  ],
  "next": "c29tZWJhc2U2NA=="
}

List Project Categories GET

US Data Center (default):

https://{subdomain}.rest.vitally.io/resources/projectCategories

EU Data Center:

https://rest.vitally-eu.io/resources/projectCategories

Paginated list of Project Templates ordered by updatedAt

Query Params (see Pagination)

Example Request

GET https://{subdomain}.rest.vitally.io/resources/projectCategories?limit=1

Example Response

{
  "results": [
    {
      "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "createdAt": "2022-02-O2T22:22:22.222Z",
      "updatedAt": "2022-02-O2T22:22:22.222Z",
      "name": "Onboarding"
    }
  ],
  "next": "c29tZWJhc2U2NA=="
}

Create A Project Using A Template POST

US Data Center (default):

https://{subdomain}.rest.vitally.io/resources/projects

EU Data Center:

https://rest.vitally-eu.io/resources/projects

Request Body

Example

POST https://{subdomain}.rest.vitally.io/resources/projects
{
  "templateId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "organizationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Last updated