{ "type":"object", "title": "email_template", "description":"An email_template in SK", "properties": { "id": { "description": "uuid of the email template", "identity":true, "readonly":true, "type":"string" }, "name": { "description": "A meaningful name.", "required":true, "type":"string" }, "subject": { "description": "Subject containing placeholders, replaced when the template is used.", "required":true, "type":"string" }, "body": { "description": "Body with placeholders, replaced when the template is used.", "required":true, "type":"string" }, "kind": { "description": "Kind of object receiving the email.", "required":true, "enum": ["invoice", "estimate", "credit_note", "payment_reminder", "order", "client"], "type":"string" }, "language":{ "description": "Should be a valid language short-code: de-DE, fr, en-GB; like defined in your account language menu. A multi-language template must belong to a parent. From then on just choose the parent-template and the localized child version is used if the related object(client, invoice,..) of the email, has the appropriate language.", "type":"string", "maxLength": 10 }, "created_at": { "description": "Date the object was created in SK. Never changes afterwards", "format":"date-time", "readonly":true, "type":"string" }, "updated_at": { "description": "Date the object was edited in SK.", "format":"date-time", "readonly":true, "type":"string" }, "team_id":{ "description": "A team uuid. If set only the team and its parent teams can see the record.", "type":"string" } }, "links":[ { "rel": "self", "href": "email_templates/{id}" }, { "rel": "instances", "href": "email_templates", "properties" : { "page":{ "title" : "Page", "description": "In paginated results set the page to look for", "type":"number" }, "per_page":{ "title" : "Per page", "description": "Results per page. Default is 10, max is 100", "type":"number" }, "sort_by":{ "title" : "Sort by", "description": "Sort the results by the given field => number", "enum":["created_at", "updated_at"], "type": "string" }, "sort":{ "title" : "Sort", "enum":["ASC","DESC"], "description": "Sort the results in ASC or DESC" } } }, { "rel": "destroy", "href": "email_templates/{id}", "method": "DELETE" }, { "rel": "update", "href": "email_templates/{id}", "method": "PUT" }, { "rel": "create", "href": "email_templates", "method": "POST" } ] }