v1

latestSwagger 2.02026-08-043765135.6 KB
notifications

Create Template

Create a new template

post/notifications/templates

Request body

Example request

{
  "data": {
    "attributes": {
      "name": "Appointment created email",
      "organizationId": "d4330e08-b2db-401d-acf5-255396c656c1"
    }
  }
}

Response

Return a single data response

Example response

{
  "data": {
    "id": "8858216c-9aeb-404c-8b88-b56bdb9ba6f2",
    "attributes": {
      "organizationId": "67f5943cf991e36b9ad30d74be5c6e2ba040aea5",
      "createdAt": "2018-02-03T10:30:00Z",
      "updatedAt": "2018-02-03T10:30:00Z"
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
        }
      }
    }
  }
}