{
  "opencollection": "1.0.0",
  "info": {
    "name": "Agile CRM REST Campaigns Documents API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get contact documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.agilecrm.com/dev/api/contacts/:contact_id/documents",
            "params": [
              {
                "name": "contact_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get contact documents"
        },
        {
          "info": {
            "name": "Create a document for a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.agilecrm.com/dev/api/contacts/:contact_id/documents",
            "params": [
              {
                "name": "contact_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a document for a contact"
        },
        {
          "info": {
            "name": "Update a contact document",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{domain}.agilecrm.com/dev/api/contacts/:contact_id/documents/:doc_id",
            "params": [
              {
                "name": "contact_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "doc_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a contact document"
        }
      ]
    }
  ],
  "bundled": true
}