1. Tasks
  2. Get Template Versions

Tasks

Get Template Versions

Retrieves versions of a Template with pagination support

Basic usage

The below task retrieves template versions with pagination from the draft branch and default context.

loading...

Parameters

templateuuid
required
string

UUID of the template to retrieve versions for : ~~stub.data.target_templateuuid

branch
required
string

The branch to retrieve versions from.

context
required
string

The template context to filter versions by.

type
optional
string

The type of versions to retrieve:

  • snapshot - retrieves snapshot versions
  • published - retrieves published versions

Defaults to retrieving both types if not specified.

skip
optional
number

Number of results to skip for pagination.
Defaults to 0.

limit
optional
number

Maximum number of versions to return.
Defaults to 100.

sort
optional
string

Field to sort results by.
Defaults to createdAt.

order
optional
string

Sort order: asc for ascending or desc for descending.
Defaults to asc.

Result

loading...

Examples

Getting published versions only

loading...

Getting versions with pagination

loading...