Contents
Query Templates by Type
Method
GET
Syntax
/grs/v1/tenant/{tenantId}/templates
Optional parms:
- &type=samples
- &maxVersions=3
Request Body
N/A
Response Body
{
"templates":[
{
"name":"test",
"version":1,
"type":"iWD",
"global":false,
"changeComment":"Initial"
},
{
"name":"ABC",
"version":2,
"type":"samples",
"global":false,
"changeComment":"Fixed bug"
},
{
"name":"ABC",
"version":1,
"type":"samples",
"global":false,
"changeComment":"Initial"
}
]
}
HTTP Status Codes
- 200 OK—Response body provided
- 401 Unauthorized—APIToken not valid
- 403 Forbidden—User does not have permission for the specified tenant.
- 503—Service Unavailable
Notes
By default, this query returns all versions (up to 100) of all templates published for the specified tenant that the logged in user has permission to view. To further filter, specify: &type and/or &maxVersions parameters.
This page was last edited on May 16, 2017, at 08:20.
Comments or questions about this documentation? Contact us for support!