Create template

POST https://bf1b0d0a-74c6-45ad-abd2-42f7a6380b40.mock.pstmn.io/templates

Creates a new template based on the given template data and generates a unique template_id.

Request Body

{"category_id"=>2, "name"=>"Template ANN2", "description"=>"New ANN template.", "terms"=>{"contractType"=>"ANN", "contractID"=>"ann02", "contractRole"=>"RPA", "contractDealDate"=>"2012-12-28T00:00:00", "initialExchangeDate"=>"2013-01-01T00:00:00", "statusDate"=>"2012-12-30T00:00:00", "notionalPrincipal"=>"100000", "cycleAnchorDateOfPrincipalRedemption"=>"2013-02-01T00:00:00", "nextPrincipalRedemptionPayment"=>"1161.08479218624", "dayCountConvention"=>"30E360", "nominalInterestRate"=>"0.07", "currency"=>"USD", "cycleOfPrincipalRedemption"=>"P1ML0", "maturityDate"=>"2023-01-01T00:00:00", "rateMultiplier"=>"1.0", "rateSpread"=>"0.0", "fixingDays"=>"P0D", "cycleAnchorDateOfInterestPayment"=>"2013-02-01T00:00:00", "cycleOfInterestPayment"=>"P1ML0"}}