Create Template

Create a template for a product.

post
Path parameters
productIdstringrequired
Body
namestring · min: 1required
typestring · enumoptionalAvailable options:
defaultbooleanoptional
contentstring · min: 1required
Responses
curl -L \
  --request POST \
  --url 'https://api.platform.softwareone.com/public/v1/products/{productId}/templates' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "text",
    "type": "OrderProcessing",
    "default": true,
    "content": "text"
  }'
{
  "id": "text",
  "audit": {},
  "$meta": {},
  "href": "text",
  "name": "text",
  "content": "text",
  "type": "OrderProcessing",
  "default": true,
  "product": {}
}

Was this helpful?

#330:

Change request updated