{
  "opencollection": "1.0.0",
  "info": {
    "name": "Helpcenter Email Drafts API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Email Drafts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get email drafts for a record",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/:module/:record/__email_drafts",
            "params": [
              {
                "name": "module",
                "value": "",
                "type": "path",
                "description": "module of the record"
              },
              {
                "name": "record",
                "value": "",
                "type": "path",
                "description": "Entity id of the record"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of records per page"
              }
            ]
          },
          "docs": "Retrieves the list of email drafts associated with the specified record in the given module."
        },
        {
          "info": {
            "name": "Create email drafts for a record",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/:module/:record/__email_drafts",
            "params": [
              {
                "name": "module",
                "value": "",
                "type": "path",
                "description": "module of the record"
              },
              {
                "name": "record",
                "value": "",
                "type": "path",
                "description": "Entity id of the record"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates one or more email drafts associated with the specified record in the given module."
        },
        {
          "info": {
            "name": "Get email draft",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/:module/:record/__email_drafts/:draft",
            "params": [
              {
                "name": "module",
                "value": "",
                "type": "path",
                "description": "module of the record"
              },
              {
                "name": "record",
                "value": "",
                "type": "path",
                "description": "Entity id of the record"
              },
              {
                "name": "draft",
                "value": "",
                "type": "path",
                "description": "Unique draft identifier"
              }
            ]
          },
          "docs": "Retrieves the specified email draft for the given record in the module."
        },
        {
          "info": {
            "name": "Update email draft",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/:module/:record/__email_drafts/:draft",
            "params": [
              {
                "name": "module",
                "value": "",
                "type": "path",
                "description": "module of the record"
              },
              {
                "name": "record",
                "value": "",
                "type": "path",
                "description": "Entity id of the record"
              },
              {
                "name": "draft",
                "value": "",
                "type": "path",
                "description": "Unique draft identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the specified email draft for the given record in the module."
        },
        {
          "info": {
            "name": "Delete an email draft",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/:module/:record/__email_drafts/:draft",
            "params": [
              {
                "name": "module",
                "value": "",
                "type": "path",
                "description": "module of the record"
              },
              {
                "name": "record",
                "value": "",
                "type": "path",
                "description": "Entity id of the record"
              },
              {
                "name": "draft",
                "value": "",
                "type": "path",
                "description": "Unique draft identifier"
              }
            ]
          },
          "docs": "Deletes the specified email draft for the given record."
        }
      ]
    }
  ],
  "bundled": true
}