Viewing all Templates
You can view details of a list of templates that share common parameters such as statuses.
Request
-
HTTP Method: GET
-
URL: Application_URL/services/api/v1/template/$count
-
Query parameters: $filter
$filter: allows you to specify the the condition on which you want filter the templates
-
Example URL: Application_URL/services/api/v1/template/$count?$filter=substringof('Sample template',Name)
-
Authorization: You must have the roles TEMPLATE_READ, TEMPLATE_EDIT or TEMPLATE_DELETE assigned to your user ID in the SAP Cloud Platform account.
Response
-
If one or more templates exist as per the filter criteria, system returns the list of templates.
For more information, see https://help.sap.com/doc/6003315aca474ad9962d53c53c5d0297/1902/en-US/Template.html#templates__count_get.
-
If the filtering criteria is incorrect, system returns an error code.
For more information on error codes, see https://help.sap.com/doc/6003315aca474ad9962d53c53c5d0297/1902/en-US/Template.html#templates__count_get.