{
  "opencollection": "1.0.0",
  "info": {
    "name": "COR Attachments Clients API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Clients",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get clients",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.projectcor.com/v1/clients",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number (default: 1). Set to `false` to disable pagination."
              },
              {
                "name": "perPage",
                "value": "",
                "type": "query",
                "description": "Number of items per page (default: 20)."
              },
              {
                "name": "filters",
                "value": "",
                "type": "query",
                "description": "URL-encoded JSON object with filter criteria."
              }
            ]
          },
          "docs": "Retrieves a paginated list of clients. By default, responses are paginated with 20 items per page."
        },
        {
          "info": {
            "name": "Create a new client",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.projectcor.com/v1/clients",
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Create a new client"
        },
        {
          "info": {
            "name": "Get client by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.projectcor.com/v1/clients/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get client by ID"
        },
        {
          "info": {
            "name": "Update client",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.projectcor.com/v1/clients/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": []
            }
          },
          "docs": "Update client"
        },
        {
          "info": {
            "name": "Get clients by name",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.projectcor.com/v1/clients/search-by-name/:name",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get clients by name"
        },
        {
          "info": {
            "name": "Set/Unset client as favorite",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.projectcor.com/v1/clients/:id/favorite",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "favorited",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Set/Unset client as favorite"
        }
      ]
    }
  ],
  "bundled": true
}