Creating a Template
You can create a model template using either a subclass template provided by SAP Asset Strategy and Performance Management, or any model template that is available for you.
Prerequisite
If you want to assign an attribute group to the template, you must have created one already. (see Creating an Attribute Group)
Request
-
HTTP Method: POST
-
Example URL: Application_URL/services/api/v1/templates
-
Authorization: You must have the roles TEMPLATE_READ, TEMPLATE_EDIT, or TEMPLATE_DELETE assigned to your user IDin the SAP Cloud Platform account.
-
Request Schema: To know about fields that you can use in a request payload, refer to the request schema in the https://help.sap.com/doc/6003315aca474ad9962d53c53c5d0297/1902/en-US/Template.html#templates_post file.
For more information about the request payload fields, their descriptions, and possible values, refer to Additional Information.
Response
-
If a template is created successfully, system auto generates a template id and returns the details in the response payload.
For more information, seehttps://help.sap.com/doc/6003315aca474ad9962d53c53c5d0297/1902/en-US/Template.html#templates_post .
-
If the template cannot be created, system returns appropriate error code in the response payload.
For more information, see https://help.sap.com/doc/6003315aca474ad9962d53c53c5d0297/1902/en-US/Template.html#templates_post.