{
  "opencollection": "1.0.0",
  "info": {
    "name": "PureCloud Platform Agent Assistants Locations API",
    "version": "v2"
  },
  "items": [
    {
      "info": {
        "name": "Locations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Location by ID.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Location ID"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Which fields, if any, to expand"
              }
            ]
          },
          "docs": "Get Location by ID."
        },
        {
          "info": {
            "name": "Update a location",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/api/v2/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Location ID"
              }
            ]
          },
          "docs": "Update a location"
        },
        {
          "info": {
            "name": "Delete a location",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v2/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Location ID"
              }
            ]
          },
          "docs": "Delete a location"
        },
        {
          "info": {
            "name": "Get sublocations for location ID.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/locations/:locationId/sublocations",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Location ID"
              }
            ]
          },
          "docs": "Get sublocations for location ID."
        },
        {
          "info": {
            "name": "Get a list of all locations.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/locations",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Page size"
              },
              {
                "name": "pageNumber",
                "value": "",
                "type": "query",
                "description": "Page number"
              },
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "id"
              },
              {
                "name": "sortOrder",
                "value": "",
                "type": "query",
                "description": "Sort order"
              }
            ]
          },
          "docs": "Get a list of all locations."
        },
        {
          "info": {
            "name": "Create a location",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v2/locations"
          },
          "docs": "Create a location"
        },
        {
          "info": {
            "name": "Search locations using the q64 value returned from a previous search",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v2/locations/search",
            "params": [
              {
                "name": "q64",
                "value": "",
                "type": "query",
                "description": "q64"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Provides more details about a specified resource"
              }
            ]
          },
          "docs": "Search locations using the q64 value returned from a previous search"
        },
        {
          "info": {
            "name": "Search locations",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v2/locations/search"
          },
          "docs": "Search locations"
        }
      ]
    }
  ],
  "bundled": true
}