{
  "opencollection": "1.0.0",
  "info": {
    "name": "Shyft Customer Authentication > Email Customer > Availabilities > admin_role > request API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Customer > Availabilities > admin_role > request",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "[availability request] get curent open one for admin",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://{{host}}/api/customer/admin_role/locations/:location_id/availability_requests/current",
            "headers": [
              {
                "name": "Session-Uukey",
                "value": "{{session_uukey}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "[availability request] get curent open one for admin"
        },
        {
          "info": {
            "name": "[availability request] get specfic request",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://{{host}}/api/customer/admin_role/locations/:location_id/availability_requests/56",
            "headers": [
              {
                "name": "Session-Uukey",
                "value": "{{session_uukey}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "[availability request] get specfic request"
        },
        {
          "info": {
            "name": "[availability request] update request or close it",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://{{host}}/api/customer/admin_role/locations/:location_id/availability_requests/56",
            "headers": [
              {
                "name": "Session-Uukey",
                "value": "{{session_uukey}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "[availability request] update request or close it"
        },
        {
          "info": {
            "name": "[availability request] create request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://{{host}}/api/customer/admin_role/locations/:location_id/availability_requests",
            "headers": [
              {
                "name": "Session-Uukey",
                "value": "{{session_uukey}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "[availability request] create request"
        }
      ]
    }
  ],
  "bundled": true
}