List (Default)

List all default Templates.

Request

GET https://ttv.microworkers.com/api/v2/templates/default

Parameters

Query Parameters

Name

Type

Description

pageSize

integer

The maximum number of Templates to include in the response, used for paging. Default: 10.

sort

string

Results may be sorted by: id, createdAt, updatedAt, title. Default: id.

nextPageToken

string

The pagination token used to get the next page of results, set this parameter to the value of “nextPageToken” from the previous response.

Response

Response HTTP Codes

Http Code

Response Type

Description

200

TemplateListResponse

OK

401

Unauthorized

Response Body

{
  "items": [
    {
      "id": string,
      "title": string,
      "htmlCode": string,
      "questions": [
        {
          "id": string,
          "name": string,
          "required": boolean,
          "tag": string
        }
      ],
      "variables": [
        string
      ],
      "createdAt": datetime,
      "lastModifiedAt": datetime,
      "jsSection": string,
      "cssSection": string
    }
  ],
  "perPage": integer,
  "nextPageToken": string
}

TemplateListResponse

Property

Type

Description

items

array[TemplateInfoResponse]

List of Templates.

nextPageToken

string

The pagination token of next page of results.

perPage

integer

The number of items per page.