Get

Gets information about Template.

Request

GET https://ttv.microworkers.com/api/v2/templates/{id}

Parameters

Path Parameter

Name

Type

Description

id

string

The ID of Template.

Response

Response HTTP Codes

Http Code

Response Type

Description

200

TemplateInfoResponse

OK

401

Unauthorized

403

Access denied

404

Not found

Response Body

{
  "id": string,
  "title": string,
  "htmlCode": string,
  "questions": [
    {
      "id": string,
      "name": string,
      "required": boolean,
      "tag": string
    }
  ],
  "variables": [
    string
  ],
  "createdAt": datetime,
  "lastModifiedAt": datetime
}

TemplateInfoResponse

Property

Type

Description

id

string

The ID of Template.

title

string

Template’s title.

htmlCode

integer

Task details Template HTML source.

questions

array[QuestionInfoResponse]

List of Questions details.

variables

array[string]

List of variable names.

createdAt

datetime

The date when Template was created.

lastModifiedAt

datetime

The date when Template was modified.

QuestionInfoResponse

Property

Type

Description

id

string

The ID of Question.

name

string

Question Name.

required

boolean

Answer to this Question is mandatory.

tag

string

Tag.