# Save Document Templates Save Document Templates Endpoint: POST /rest/2.0/DOCUMENT_TEMPLATE Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Output_Document_Type` (string, required) Output Document Type: The type of Document output generated when using this template. - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.Id` (string, required) ID - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.TemplateType` (string) Template Type - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.Name` (string, required) Template Name: Unique Name for the Document Template - `brmObjects.FileStorageId` (string) File Storage Id: Id of File Storage ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.Output_Document_Type` (string) Output Document Type: The type of Document output generated when using this template. - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.Id` (string) ID - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.TemplateType` (string) Template Type - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.Name` (string) Template Name: Unique Name for the Document Template - `retrieveResponse.FileStorageId` (string) File Storage Id: Id of File Storage ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error