Jump to: navigation, search

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.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 16, 2017, at 00:20.