Working with the Model Template API
The Model Template API part of the unified Chargeback API allows you to allows you to define and manage cost model template objects.
This topic describes how can you can perform the following operations on Model Template Objects using HTTP method calls provided by the Chargeback API.
- CREATE a model template (using the POST method)
- RETRIEVE a model template (using the GET and POST methods)
- UPDATE a model template (using the PUT method)
- DELETE a model template (using the DELETE method)
To create a model template
You can use the POST HTTP method to create and instantiate model templates through the Chargeback API.
To instantiate a new instance of a model template
To add existing cost objects to the model template
To retrieve a model template
You can use the GET HTTP method to retrieve model templates through the Chargeback API.
- Retrieve a model template by ID
- Retrieve a model template by ID and cost object ID
- Search all instances of a model template
- Search cost objects allocated to the model template
To retrieve a model template by ID
To retrieve a model template by ID and cost object ID
To search all instances of a model template
To search cost objects allocated to the model template
To update a model template
You can use the PUT HTTP method to modify or update model templates through the Chargeback API.
To modify data about a model template by ID
To delete a model template
You can use the DELETE HTTP method to delete or remove model templates through the Chargeback API.
- Delete a model template by ID
- Delete the cost object associated with the model template by cost object ID
To delete a model template by ID
To delete the cost object associated with the model template by cost object ID
Where to go from here
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*