{
  "opencollection": "1.0.0",
  "info": {
    "name": "7shifts Availability Shifts API",
    "version": "2.0"
  },
  "items": [
    {
      "info": {
        "name": "Shifts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Shifts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.7shifts.com/v2/company/:company_id/shifts",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              },
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "Filter by location."
              },
              {
                "name": "department_id",
                "value": "",
                "type": "query",
                "description": "Filter by department."
              },
              {
                "name": "role_id",
                "value": "",
                "type": "query",
                "description": "Filter by role."
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "Filter by assigned user."
              },
              {
                "name": "start[gte]",
                "value": "",
                "type": "query",
                "description": "Filter by shift start time greater than or equal to (ISO8601)."
              },
              {
                "name": "start[lte]",
                "value": "",
                "type": "query",
                "description": "Filter by shift start time less than or equal to (ISO8601)."
              },
              {
                "name": "modified_since",
                "value": "",
                "type": "query",
                "description": "Return shifts modified after the specified datetime."
              },
              {
                "name": "open",
                "value": "",
                "type": "query",
                "description": "Filter for unassigned (open) shifts."
              },
              {
                "name": "include_draft",
                "value": "",
                "type": "query",
                "description": "Include draft shifts."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for the next or previous page."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Results per page (1-500, default 100; 20 for some collections)."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List Shifts"
        },
        {
          "info": {
            "name": "Create Shift",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.7shifts.com/v2/company/:company_id/shifts",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create Shift"
        },
        {
          "info": {
            "name": "Retrieve Shift",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.7shifts.com/v2/company/:company_id/shifts/:shift_id",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              },
              {
                "name": "shift_id",
                "value": "",
                "type": "path",
                "description": "Shift identifier."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve Shift"
        },
        {
          "info": {
            "name": "Delete Shift",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.7shifts.com/v2/company/:company_id/shifts/:shift_id",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "Company identifier."
              },
              {
                "name": "shift_id",
                "value": "",
                "type": "path",
                "description": "Shift identifier."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete Shift"
        }
      ]
    }
  ],
  "bundled": true
}