> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRestockSuggestionTemplateCommandResponse

> Creates a template. Only the destination of the settings is required; every other setting takes its default. A template cannot select one supplier ('sourceSelection' 'SUPPLIER') or one warehouse ('destinationSelection' 'WAREHOUSE'): the ERP's templates have no place for them; send such settings with the calculation instead. The template is kept in the ERP's expert mode, so that the ERP calculates with exactly these settings; its options outside this contract (display and purchase list options of the ERP's dialog) are kept as stored. Available in GraphQL only. Errors arrive as GraphQL errors with the code in 'extensions.code'; a refusal because of the current state also lists every reason in 'extensions.blockers'. Codes: RESTOCK_SUGGESTION_TEMPLATE_NAME_REQUIRED or RESTOCK_SUGGESTION_SELECTION_NOT_ALLOWED_IN_TEMPLATE (the name is empty, or the settings select one supplier or one warehouse); RESTOCK_SUGGESTION_START_AREA_REQUIRED, RESTOCK_SUGGESTION_SUPPLIER_REQUIRED, RESTOCK_SUGGESTION_DESTINATION_AREA_REQUIRED, RESTOCK_SUGGESTION_WAREHOUSE_REQUIRED, RESTOCK_SUGGESTION_FORECAST_PERIOD_REQUIRED or VALIDATION_FAILED (a selection or forecast type misses the ID, days, dates or period it needs, or the request is invalid otherwise, for example an ID the selection does not use, a period that ends before it starts, an unknown value of a documented string or a number out of its range); RESTOCK_SUGGESTION_START_AREA_NOT_FOUND, RESTOCK_SUGGESTION_DESTINATION_AREA_NOT_FOUND, SUPPLIER_NOT_FOUND or WAREHOUSE_NOT_FOUND (a referenced record was not found; an area of the other kind counts as not found); RESTOCK_SUGGESTION_START_AREA_INACTIVE, RESTOCK_SUGGESTION_DESTINATION_AREA_INACTIVE or WAREHOUSE_NOT_USABLE (an area or the warehouse is not active). - Response



**Kind**: `object`

## Fields

**`templateId`**: `ID!`

The ID of the new template.

---

**`clientId`**: `String`

The temporary identifier from the request, if one was sent.

