{
  "openapi": "3.0.0",
  "info": {
    "title": "nRF Cloud REST API",
    "version": "v1",
    "description": "# Overview\n  The [nRF Cloud REST API](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/RESTOverview.html)\n  allows you to programmatically interact with, and retrieve historical information generated by, any device that you have\n  connected to <a href='https://nrfcloud.com'>nRFCloud.com</a>.\n\nThe REST API documentation is a supplement to the <a href='https://docs.nordicsemi.com/bundle/nrf-cloud/page/index.html'>main nRF Cloud documentation</a>.\n\n[DevZone](https://devzone.nordicsemi.com) is Nordic Semiconductor's official tech support site and community.\nGet help from a dedicated tech support team and more than 25,000 other community members.\n\nIf you are encountering unexpected behavior or errors, check the current [status](https://status.nrfcloud.com) of nRF Cloud.\n\n# Error Codes\nSome of the endpoints return specific error codes (called 'nRF Codes'), which can be found in this table.\n  <table>\n      <thead>\n      <tr>\n          <th style='width:10%'>nRF&nbsp;Code</th>\n          <th style='width:20%'>Error</th>\n          <th style='width:35%'>Reason</th>\n          <th style='width:35%'>Solution</th>\n      </tr>\n      </thead>\n      <tbody>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40000'>40000</div>\n          </td>\n          <td valign='top'>Bad request error.</td>\n          <td valign='top'>This error could mean many things. Most of the time it means something is not as expected\n              on the cloud like a file was missing or an internal service failed.\n          </td>\n          <td valign='top'>Alert Nordic support by filing a ticket on <a href='https://devzone.nordicsemi.com/'\n                                                                          target='_blank'>DevZone</a>.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40001'>40001</div>\n          </td>\n          <td valign='top'>Device does not have a valid device certificate for associating (adding) it to your\n              account.\n          </td>\n          <td valign='top'>Your nRF9160 DK device or Thingy:91 device does not have a 'just-in-time provisioning' (JITP) certificate, or\n              the certificate has been corrupted.\n          </td>\n          <td valign='top'>Refer to the <a\n                  href='https://docs.nordicsemi.com/bundle/ncs-2.4.3/page/nrf/working_with_nrf/nrf91/nrf9160_gs.html'>\n              nRF9160 DK Getting Started Guide</a> or <a\n                  href='https://docs.nordicsemi.com/bundle/ncs-2.5.1/page/nrf/device_guides/working_with_nrf/nrf91/thingy91_gsg.html'>\n              Thingy:91 Getting Started Guide</a> for information on upgrading your device certificate.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40002'>40002</div>\n          </td>\n          <td valign='top'>Device cannot be dissociated (removed from your account).</td>\n          <td valign='top'>The nRF9160 DK or Thingy:91 you are trying to dissociate was added to your account using the legacy\n              pairing mechanism (button and switch pattern) instead of the <code>AssociateDevice</code> <a\n                      href='#operation/AssociateDevice'>endpoint</a>.\n          </td>\n          <td valign='top'>Delete the device from your account using either the <code>Configure</code> &gt; <code>Delete\n              Device</code> menu item on nrfcloud.com or the <code>DeleteDevice</code> <a\n                  href='#operation/DeleteDevice'>endpoint</a>. If you want to re-add this device to your account you\n              will first have to flash a new device certificate and upgrade the firmware. Refer to the <a\n                  href='https://docs.nordicsemi.com/bundle/ncs-2.4.3/page/nrf/working_with_nrf/nrf91/nrf9160_gs.html'>\n              nRF9160 DK Getting Started Guide</a> or <a\n                  href='https://docs.nordicsemi.com/bundle/ncs-2.5.1/page/nrf/device_guides/working_with_nrf/nrf91/thingy91_gsg.html'>\n              Thingy:91 Getting Started Guide</a> for information on how to do this.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40005'>40005</div>\n          </td>\n          <td valign='top'>Usage limit exceeded.</td>\n          <td valign='top'>The API request exceeds one of the monthly usage limits defined on the\n              <a href='https://nrfcloud.com/#/pricing'>Pricing page</a> for users on the free Developer plan.\n          </td>\n          <td valign='top'>Wait until the beginning of the next month to continue your usage on the Developer\n              plan, or upgrade to the Pro or Enterprise plan.\n              See <a href='https://docs.nordicsemi.com/bundle/nrf-cloud/page/AccountAndTeamManagement/Plans/PlanOverview.html'>\n              nRF Cloud plans</a> to learn about the available plans, how to view your plan details and usage,\n              and how to upgrade your plan.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40100'>40100</div>\n          </td>\n          <td valign='top'>Access denied error.</td>\n          <td valign='top'>The user making the request does not have access to the requested resource (device, SIM,\n              invitation, etc.).\n          </td>\n          <td valign='top'>Confirm your authorization is correct. Refer to the endpoint's documentation to\n              determine if your request requires a Simple Token (API Key), a JSON Web Token (JWT), or an\n              Organization Auth Token (OAT). Some endpoints accept more than one.</td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40101'>40101</div>\n          </td>\n          <td valign='top'>Device is already associated with another account.</td>\n          <td valign='top'>Another user has already added this device to their account.</td>\n          <td valign='top'>If you know the other account owner you can request that they dissociate the device so that\n              you can add it to your account. Otherwise, this operation is not allowed.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40102'>40102</div>\n          </td>\n          <td valign='top'>The ownership code is invalid for this device.</td>\n          <td valign='top'>You entered the wrong ownership code (PIN or HWID) that is printed on the Nordic\n              Semiconductor product label, or which you submitted when creating a new device certificate.\n          </td>\n          <td valign='top'>Verify the PIN or HWID and enter it correctly.</td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40103'>40103</div>\n          </td>\n          <td valign='top'>This device is not associated with your account.</td>\n          <td valign='top'>The device you want to dissociate (remove from your account) is not found in your\n              account.\n          </td>\n          <td valign='top'>None. You are not allowed to do this.</td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40410'>40410</div>\n          </td>\n          <td valign='top'>Entity not found.\n          </td>\n          <td valign='top'>This error can be thrown for a variety of reasons, indicating that the entity could not be found by its ID. The entity could be a device, a certificate, or an API key, for example.\n          </td>\n          <td valign='top'>Refer to the associated message for details. For devices, confirm the device id you entered matches your existing device ID and that the device has not been deleted.\n              You can confirm using the <a href=\"/v1#operation/ListDevices\">ListDevices endpoint</a>.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40411'>40411</div>\n          </td>\n          <td valign='top'>A Nordic Semiconductor product with this device id and ownership code could not be found.\n          </td>\n          <td valign='top'>The device id you entered matches the format for a Nordic Semiconductor product, but the\n              device id and/or ownership code cannot be found in our system.\n          </td>\n          <td valign='top'>Compare the values you entered with what is printed on your product's label (for devices\n              with <code>IMEI</code> printed on the label, the device id will be <code>nrf-[IMEI]</code>, e.g., <code>nrf-123456789012345</code>).\n              If you submitted the correct values, please contact Nordic Semiconductor Tech Support for further\n              assistance.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40412'>40412</div>\n          </td>\n          <td valign='top'>No device found for this id. The device has not yet been provisioned.</td>\n          <td valign='top'>The device cannot be found in the nRF Cloud IoT device registry. The most likely reason\n              is that the device has not established an initial communication with the nRF Cloud MQTT broker, which\n              creates a new entry in the registry. Possible causes:<br><br>\n              <ol>\n                  <li>You entered the device id and/or ownership code (PIN or HWID) incorrectly.</li>\n                  <li>The device has not yet achieved an LTE connection, so it cannot contact nRF Cloud.</li>\n                  <li>The device has not completed the initial MQTT handshaking with nRF Cloud. Some hardware devices\n                      may indicate this completion using LED patterns.</li>\n                  <li>Corrupt modem firmware.</li>\n                  <li>Corrupt, wrongly flashed, or illegitimate device certificates.</li>\n                  <li>Poor LTE connection.</li>\n              </ol>\n          </td>\n          <td valign='top'>Solutions that match the possible reasons are listed here. For Nordic Semiconductor products,\n              refer to the <a href='https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/gsg_guides.html'>\n              Getting Started Guide</a> for your device.<br><br>\n              <ol>\n                  <li>Verify the values and try again. For Nordic Semiconductor products, please see the solution for\n                      nRF Code 40411, above.</li>\n                  <li>Ensure that the device's SIM card or eSIM is activated and functioning. If using an iBasis\n                      SIM card that is packaged with a Nordic Semiconductor product such as a Development\n                      Kit, activate the card on nrfcloud.com and then (re-)boot the device to connect.</li>\n                  <li>Check the LED status indicators to ensure the device indicates it has connected.</li>\n                  <li>(Re-)flash the latest modem firmware.</li>\n                  <li>Move to a location with a better LTE connection.</li>\n              </ol>\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40413'>40413</div>\n          </td>\n          <td valign='top'>No device found for this id.</td>\n          <td valign='top'>You are trying to dissociate a device that is not found in your account (wrong device id),\n              or you are submitting the device's friendly name, not the id.\n          </td>\n          <td valign='top'>Verify you are passing the correct device id (not the friendly name you may have given\n              it).\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40414'>40414</div>\n          </td>\n          <td valign='top'>No device found for this id.</td>\n          <td valign='top'>You are trying to delete a device that was not found in your account or in the IoT registry\n              (i.e., provisioned, but not yet added to your account).\n          </td>\n          <td valign='top'><em>This may not be an error</em>, because the device may already be deleted. Verify you entered\n              the correct device id and ownership code (PIN or HWID on the label). For Nordic Semiconductor products,\n              see the solution for nRF Code 40411, above.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40420'>40420</div>\n          </td>\n          <td valign='top'>Resource not found.\n          </td>\n          <td valign='top'>This error can be thrown for a variety of reasons, indicating that a resource could not be found by its ID. The resource could be a device, a certificate, or an API key, for example.\n          </td>\n          <td valign='top'>Refer to the associated message for details. For devices, confirm the device id you entered matches your existing device ID and that the device has not been deleted.\n              You can confirm using the <a href=\"/v1#operation/ListDevices\">ListDevices endpoint</a>.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/40499'>40499</div>\n          </td>\n          <td valign='top'>Not found, but no error.</td>\n          <td valign='top'>The requested item(s) do not exist, but there is no error.\n              For some requests, if the list to be returned is empty, this code and an explanatory message is\n              returned instead of an empty list.\n          </td>\n          <td valign='top'>No action is necessary.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/41600'>41600</div>\n          </td>\n          <td valign='top'>Range not satisfiable.</td>\n          <td valign='top'>You are calling an endpoint that uses the Range header and the byte range does not exist in\n              the target file or the range header itself is malformed.\n          </td>\n          <td valign='top'>Check the expected file size for the target file and ensure the range requested exists.\n              Refer to the <a href='https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range' target='_blank'>range\n                  header docs</a> for more information.\n          </td>\n      </tr>\n      <tr>\n          <td valign='top'>\n              <div data-section-id='section/Error-Codes/42200'>42200</div>\n          </td>\n          <td valign='top'>Validation failed.</td>\n          <td valign='top'>You are calling an endpoint with invalid request data.</td>\n          <td valign='top'>Check the expected request format and try again.</td>\n      </tr>\n      </tbody>\n  </table>\n",
    "x-logo": {
      "url": "https://www.nordicsemi.com/svg/Logo_Trans_RGB_Vertical-optimized.svg",
      "altText": "nRF Cloud logo",
      "backgroundColor": "#FFFFFF",
      "href": "https://www.nordicsemi.com"
    }
  },
  "servers": [
    {
      "url": "https://api.nrfcloud.com/v1"
    }
  ],
  "tags": [
    {
      "name": "All Devices",
      "description": "Endpoints for devices that can send data to the platform.",
      "x-displayName": "All Devices"
    },
    {
      "name": "IP Devices",
      "description": "Endpoints for device that have an IP address and can send messages directly to the platform.",
      "x-displayName": "IP Devices"
    },
    {
      "name": "The FOTA Service",
      "description": "Endpoints for working with the Firmware Over-the-Air (FOTA) Updates service.\n\nFor more information see the [FOTA Service documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/FirmwareUpdate/FOTAOverview.html).\n",
      "x-displayName": "The FOTA Service"
    },
    {
      "name": "FOTA Jobs",
      "description": "Endpoints for creating and interacting with FOTA Jobs.\n\nFor more information see the [FOTA Service documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/FirmwareUpdate/FOTAOverview.html).\n",
      "x-displayName": "FOTA Jobs"
    },
    {
      "name": "FOTA Job Executions",
      "description": "Endpoints for interacting with individual FOTA Job Executions.\n\nFor more information see the [FOTA Service documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/FirmwareUpdate/FOTAOverview.html).\n",
      "x-displayName": "FOTA Job Executions"
    },
    {
      "name": "Firmware Bundles",
      "description": "Endpoints for managing your firmware bundles.\n\nFor more information see the [FOTA Service documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/FirmwareUpdate/FOTAOverview.html).\n",
      "x-displayName": "Firmware Bundles"
    },
    {
      "name": "Messages",
      "description": "Endpoints for sending and retrieving messages sent to or from a device.",
      "x-displayName": "Messages"
    },
    {
      "name": "Bulk Ops Requests",
      "description": "Endpoints for viewing the details and status of one or more bulk operations requests. A bulk operation request is a request to any endpoint that supports asynchronous operations, such as the <a href='/v1#operation/OnboardDevices'>OnboardDevices</a> endpoint.",
      "x-displayName": "Bulk Ops Requests"
    },
    {
      "name": "Alerts",
      "description": "**Deprecated.** Device alerts are being retired and these endpoints may be removed in a future release.\nFor legacy alerts migration details, see [Migrate nRF Cloud Alerts to Memfault Trace Events](https://docs.nrfcloud.com/docs/reference/reference-alerts-migration).\n\nEndpoints to list and manage device alerts.\n",
      "x-displayName": "Alerts"
    },
    {
      "name": "Hostname",
      "description": "nRF Cloud location services are available at a dedicated hostname optimized for location service traffic:\n\n```\nhttps://api.location.nrfcloud.com/v1\n```\n\nThis endpoint provides faster TLS termination and an optimized network route to nRF Cloud's servers,\nmaking it the recommended connection method for all regions globally.\n\nAll location service API paths and authentication methods are identical to the standard\n`https://api.nrfcloud.com/v1` base URL — only the hostname changes.\n",
      "x-displayName": "Hostname"
    },
    {
      "name": "OpenAPI Specification",
      "description": "Endpoint to obtain the OpenAPI JSON for the nRF Cloud REST API.\n",
      "x-displayName": "OpenAPI Specification"
    },
    {
      "name": "Location Services",
      "description": "The Location Service endpoints help devices quickly and efficiently know their location in the world.\n\nFor more information see the [Location Services documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/LocationServices/LSOverview.html).\n",
      "x-displayName": "Location Services"
    },
    {
      "name": "Assisted GPS",
      "description": "Endpoints for retrieving assistance data, enabling a faster time-to-first-fix (TTFF) for the GPS modem.\n\nFor more information see the [Location Services documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/LocationServices/LSOverview.html).\n",
      "x-displayName": "Assisted GPS"
    },
    {
      "name": "Single Cell",
      "description": "<span></span>\n",
      "x-displayName": "Single Cell"
    },
    {
      "name": "Predicted GPS",
      "description": "Endpoints for retrieving up to one week of predicted assistance data, enabling a faster time-to-first-fix (TTFF) for the GPS modem, even when the device is offline.\n\nFor more information see the [Location Services documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/LocationServices/LSOverview.html).\n",
      "x-displayName": "Predicted GPS"
    },
    {
      "name": "Cell Location",
      "description": "Endpoints to retrieve the coarse location of the device based on the nearest cell(s).\n\nFor more information see the [Location Services documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/LocationServices/LSOverview.html).\n",
      "x-displayName": "Cell Location"
    },
    {
      "name": "Wi-Fi Location",
      "description": "Endpoint to retrieve the location of the device based on the nearest wi-fi access points.\n",
      "x-displayName": "Wi-Fi Location"
    },
    {
      "name": "GNSS",
      "description": "Endpoints for all things related to GNSS including assistance, predictions (coming soon), and reporting GNSS coordinates.\n\nFor more information see the [Location Services GNSS tutorial](https://docs.nordicsemi.com/bundle/nrf-cloud/page/LocationServices/Tutorials/GPS.html).\n",
      "x-displayName": "GNSS"
    },
    {
      "name": "Ground Fix",
      "description": "Endpoint to retrieve the location of the device based on the nearest wi-fi access points or LTE cells. You can send either or both, using the same formats as the cell/wifi endpoints. The cloud will figure out the best location. This is a good option for low power devices looking to minimize the number of requests and extend battery life.",
      "x-displayName": "Ground Fix"
    },
    {
      "name": "Location History",
      "description": "Endpoint to retrieve the previous locations for a device.\n",
      "x-displayName": "Location History"
    },
    {
      "name": "Geocoding",
      "x-displayName": "Geocoding"
    }
  ],
  "paths": {
    "/bulk-ops-requests/{bulkOpsRequestId}": {
      "get": {
        "operationId": "FetchBulkOpsRequest",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkOpsRequestDetails"
                }
              }
            }
          }
        },
        "description": "Fetch a bulk operations request.",
        "summary": "FetchBulkOpsRequest",
        "tags": [
          "Bulk Ops Requests"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "bulkOpsRequestId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ULID"
            }
          }
        ]
      }
    },
    "/bulk-ops-requests": {
      "get": {
        "operationId": "ListBulkOpsRequests",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_BulkOpsRequestDetails_"
                }
              }
            }
          }
        },
        "description": "Fetch a list of bulk operations requests.",
        "summary": "ListBulkOpsRequests",
        "tags": [
          "Bulk Ops Requests"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/BulkOpsRequestStatus"
            }
          },
          {
            "in": "query",
            "name": "startRequestedAt",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endRequestedAt",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "default": 10,
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/association/{deviceId}": {
      "put": {
        "deprecated": true,
        "operationId": "AssociateDevice",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Add a device to your nRF Cloud account. The association process is idempotent. You may therefore use this endpoint to update your device's `subType`. For more on the use of `subType` see the [OnboardDevices endpoint](#operation/OnboardDevices).\n```sh\ncurl -X PUT $API_HOST/v1/association/$DEVICE_ID -d \"$DEVICE_OWNERSHIP_CODE\" -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: text/plain\"\n```",
        "summary": "AssociateDevice",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "query",
            "name": "subType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ThingType"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OwnershipCode"
              }
            }
          }
        }
      }
    },
    "/devices": {
      "post": {
        "operationId": "OnboardDevices",
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bulkOpsRequestId": {
                      "$ref": "#/components/schemas/ULID"
                    }
                  },
                  "required": [
                    "bulkOpsRequestId"
                  ],
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Validation Failed"
          }
        },
        "description": "[Onboard](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Onboarding.html) and associate one or more devices with your nRF Cloud account by posting CSV data.\n\nThis endpoint supports two onboarding modalities depending upon whether you include device certificates or public keys in your CSV Payload.\n\nUploading a device certificate allows the device to use nRF Cloud services using any supported connectivity protocol, such as MQTT, and CoAP. This endpoint involves your own CA certificate and\nrequires you to upload device certificates that you have already obtained, whether via a CSR produced by the `AT%KEYGEN` command\n(modem firmware v1.3+), or offline via your own script. We impose no rules on your CA certificate, and a self-signed certificate may be used.\nFor more information see [Onboarding](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Onboarding.html) in the nRF Cloud documentation.\n\nWhether using our APIs via CoAP or MQTT you will need to flash to your device:\n1. <a href=\"https://www.amazontrust.com/repository/AmazonRootCA1.pem\" target=\"_blank\">The Amazon Root CA1 PEM file</a>, which enables the device to authenticate the AWS IoT server.\n2. The private key associated with the device certificate.\n\nAdditionally, if the device will be using MQTT, you will also need to flash the device certificate. For [signing JWTs](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/JWT.html) you will use the private key associated\nwith the certificate. (During the device onboarding process we extract the corresponding public key from your uploaded certificate and use this for JWT signature verification.)\n\nThe second onboarding modality involves uploading a public key to verify the signatures of [JSON Web Tokens (JWTs)](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/JWT.html) sent by the device.\nUploading a public key allows the device to use  [JSON Web Tokens (JWTs)](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/JWT.html) signed by the private key of an asymmetric key pair, i.e., a private key that is different than the one used to sign the device's CSR (this key pair can be generated via the AT%KEYGEN command).\nIf you are using JWTs signed by the device CSR key, and you have also uploaded the device's certificate via this or the [OnboardDevices endpoint](#operation/OnboardDevices), there is no need to upload the public key, because it is automatically extracted from the certificate.\nThis is useful for devices that only want to consume nRF Cloud services over REST.\n\nPlease note:\nPublic keys must be [ES256](https://ldapwiki.com/wiki/Wiki.jsp?page=ES256). For more information, see the [nRF Cloud REST Authentication documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/RESTOverview.html#authentication).\n\nThis endpoint supports [asynchronous bulk operations](#tag/Bulk-Ops-Requests). Your data will be validated, and if valid, you\nwill receive an HTTP 202 response with a `bulkOpsRequestId`. You can use this id with the bulk ops endpoints\nto track the request's processing status. If the bulk ops request indicates FAILED status, check the JSON errors file (URL in the bulk\nops request details), fix the offending rows, then re-submit the CSV with only those rows.\n\nEach CSV row must in the format `deviceId,[subType],[tags],[supportedFirmwareTypes],\"certificate\"`, where:\n\n|Field|Required?|Description|Validation Pattern|\n|---|:---:|---|---|\n|`deviceId`<div style=\"width:90px\"></div>|Yes|A globally unique device id (UUIDs are highly recommended)|`/^[a-z0-9:_-]{1,128}$/i`|\n|`subType`|No|A custom [device type](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Properties/Types.html) (for example `humidity-sensor`) to help you better recognize or categorize your devices.\n|`tags`|No|A list of pipe-delimited tags to create groups of devices (e.g., `warehouse\\|sensor\\|east`)|Each tag:<br/>`/^[a-zA-Z0-9_.@:#-]+$/`|\n|`supportedFirmwareTypes`|No|A list of pipe-delimited firmware types that each device supports for FOTA (e.g., `APP\\|MODEM`)|Each type:<br/>`/^(APP\\|MODEM\\|BOOT\\|SOFTDEVICE\\|BOOTLOADER\\|MDM_FULL)$/`|\n|`certificate`|Yes|Either a unique [ES256](https://ldapwiki.com/wiki/Wiki.jsp?page=ES256) X.509 certificate OR public key in PEM format, wrapped in double quotes (to allow for line breaks in CSV).|`/^-{5}BEGIN CERTIFICATE-{5}(\\r\\n\\|\\r\\|\\n)([^-]+)(\\r\\n\\|\\r\\|\\n)-{5}END CERTIFICATE-{5}(\\r\\n\\|\\r\\|\\n)$/` OR `/^-{5}BEGIN PUBLIC KEY-{5}(\\r\\n\\|\\r\\|\\n)([^-]+)(\\r\\n\\|\\r\\|\\n)-{5}END PUBLIC KEY-{5}(\\r\\n\\|\\r\\|\\n)$/`|\n\nColumns may appear in any order when a header row is present. If the header row is missing, the default column order is applied strictly: `deviceId,subType,tags,supportedFirmwareTypes,certificate`.\n\nExamples of CSV rows:\n   #### All values set with certificate\n<span style=\"font-family:Courier\">deviceId,subType,tags,supportedFirmwareTypes,certificate<br/>f69c0e45-7f04-4949-8def-bb2215b4223e,my-thing-type,tag1|tag2,APP|MODEM,\"-----BEGIN CERTIFICATE-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END CERTIFICATE-----<br/>\"</span>\n   #### `subType` not set\n<span style=\"font-family:Courier\">deviceId,tags,supportedFirmwareTypes,certificate<br/>f69c0e45-7f04-4949-8def-bb2215b4223e,tag1|tag2,APP|MODEM,\"-----BEGIN CERTIFICATE-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END CERTIFICATE-----<br/>\"</span>\n   #### `subType` and `tags` not set, but supported `supportedFirmwareTypes` are set\n<span style=\"font-family:Courier\">deviceId,supportedFirmwareTypes,certificate<br/>f69c0e45-7f04-4949-8def-bb2215b4223e,APP|MODEM,\"-----BEGIN CERTIFICATE-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END CERTIFICATE-----<br/>\"</span>\n #### Using the public key modality\n   * <span style=\"font-family:Courier\">deviceId,supportedFirmwareTypes,certificate<br/>f69c0e45-7f04-4949-8def-bb2215b4223e,APP|MODEM,\"\"-----BEGIN PUBLIC KEY-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END PUBLIC KEY-----<br/>\"</span>\n #### Without header row (default strict column order: deviceId,subType,tags,supportedFirmwareTypes,certificate)\n   * <span style=\"font-family:Courier\">f69c0e45-7f04-4949-8def-bb2215b4223e,,tag1|tag2,,\"-----BEGIN CERTIFICATE-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END CERTIFICATE-----<br/>\"</span>\n\nAlso note:\n   * Max number of rows is 1000.\n   * Do not leave any blank lines.\n\nExample of uploading CSV data as a binary file:\n\n```sh\ncurl -X POST $API_HOST/v1/devices \\\n--data-binary @$PATH_TO_CSV_FILE \\\n-H \"Content-Type: application/octet-stream\" \\\n-H \"Authorization: Bearer $API_KEY\"\n```\nNote that for some unknown reason, curl will strip the final line break in each ES256 cert when sending the CSV file using a non-binary content-type, e.g., using syntax such as `-d @$PATH_TO_CSV_FILE -H \"Content-Type: text/csv\"`. Therefore, with curl use `--data-binary` only. If you want to send the CSV as text, use a REST client like Postman or Insomnia.\nTo synchronously provision a single device, you can also use the [OnboardDevice endpoint](#operation/OnboardDevice).",
        "summary": "OnboardDevices",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "content-type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RestApiPayloadContentTypeWithCsv"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardDevicesPayload"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "ListDevices",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_Device-or-JSONataTransformedResponse_"
                }
              }
            }
          }
        },
        "description": "Fetch a list of devices associated with the team defined by your API key.",
        "summary": "ListDevices",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "description": "If false (the default), the device’s state is not returned, but only the device metadata. This allows you to keep the response size small if needed.",
            "in": "query",
            "name": "includeState",
            "required": false,
            "deprecated": true,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "If false (the default), the metadata for an IP-based device's state (i.e., timestamps reflecting each property's last updated time) are not returned.",
            "in": "query",
            "name": "includeStateMeta",
            "required": false,
            "deprecated": true,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Not a true array of strings, but rather a JSONata expression such as `id` or `{ \"id\": id, \"type\": type }`. For more information see [Transforming JSON Responses guide](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/Tutorials/Transforms.html).",
            "in": "query",
            "name": "transform",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "description": "If specified, only return devices that have one of these tags AND are accessible by the user's Role and their assigned Device Groups (tags)",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DeviceTag"
              }
            }
          },
          {
            "description": "If specified, only return devices with matching identifiers",
            "in": "query",
            "name": "deviceIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DeviceId"
              }
            }
          },
          {
            "description": "If specified, only return devices that support the given firmware types",
            "in": "query",
            "name": "firmwareSupport",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FirmwareTypes"
              }
            }
          },
          {
            "in": "query",
            "name": "firmwareSupportExclude",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FirmwareTypes"
              }
            }
          },
          {
            "in": "query",
            "name": "subTypes",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ThingType"
              }
            }
          },
          {
            "in": "query",
            "name": "deviceNameFuzzy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/devices/{deviceId}": {
      "post": {
        "operationId": "OnboardDevice",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "[Onboard](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Onboarding.html) and associate a single device with your nRF Cloud account.\n\nUploading a device certificate allows the device to use nRF Cloud services using any supported connectivity protocol, such as MQTT, and CoAP.\nThis endpoint involves your own CA certificate and\nrequires you to upload device certificates that you have already obtained, whether via a CSR produced by the `AT%KEYGEN` command\n(modem firmware v1.3+), or offline via your own script. We impose no rules on your CA certificate, and a self-signed certificate may be used.\nFor more information see [Onboarding](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Onboarding.html) in the nRF Cloud documentation.\n\nWhether using our APIs via REST or MQTT you will need to flash to your device:\n1. <a href=\"https://www.amazontrust.com/repository/AmazonRootCA1.pem\" target=\"_blank\">The Amazon Root CA1 PEM file</a>, which enables the device to authenticate the AWS IoT server.\n2. The private key associated with the device certificate.\n\nAdditionally, if the device will be using MQTT, you will also need to flash the device certificate. For [signing JWTs](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/JWT.html) you will use the private key associated\nwith the certificate. (During the device onboarding process we extract the corresponding public key from your uploaded certificate and use this for JWT signature verification.)\n\nFor bulk onboarding of devices, please use the [OnboardDevices endpoint](#operation/OnboardDevices).",
        "summary": "OnboardDevice",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardSingleDeviceArgs"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DeleteDevice",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Delete a device from your account. This will forward a DEVICE DISCON message on the /c2d MQTT topic, allowing the device to gracefully disconnect. You can [view the format here](https://github.com/nRFCloud/application-protocols/tree/v1/schemas/cloudToDevice/device).\n```sh\ncurl -X DELETE $API_HOST/v1/devices/$DEVICE_ID -H \"Authorization: Bearer $API_KEY\"\n```",
        "summary": "DeleteDevice",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ]
      },
      "get": {
        "operationId": "FetchDevice",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/GenericDevice"
                    },
                    {
                      "$ref": "#/components/schemas/JSONataTransformedResponse"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Fetch a device and its state.\n```sh\ncurl $API_HOST/v1/devices/$DEVICE_ID -H \"Authorization: Bearer $API_KEY\"\n```",
        "summary": "FetchDevice",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "description": "Not a true array of strings, but rather a JSONata expression such as `id` or `{ \"id\": id, \"type\": type }`. For more information see [Transforming JSON Responses guide](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/Tutorials/Transforms.html).",
            "in": "query",
            "name": "transform",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "/devices/public-keys": {
      "post": {
        "deprecated": true,
        "operationId": "RegisterPublicKeys",
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bulkOpsRequestId": {
                      "$ref": "#/components/schemas/ULID"
                    }
                  },
                  "required": [
                    "bulkOpsRequestId"
                  ],
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Validation Failed"
          }
        },
        "description": "Register one or more public keys so that the signatures for [JSON Web Tokens (JWTs)](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/JWT.html) sent by the device can be verified.\n\nThis endpoint supports the following use case:\n- Devices that <strong>are [onboarded](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Onboarding.html)</strong> on nRF Cloud and want to use a dedicated private key for signing JWTs instead of the key associated\nwith the device's cloud-onboarding certificate (e.g., onboarded with the <a href=\"#operation/OnboardDevices\">OnboardDevices endpoint</a>,\nwhich automatically extracts and stores a public key during the onboarding process for use in subsequent JWT signature verifications).\n\nOnly one public key may be registered for each device. Uploading CSV data with a different key for the same device will overwrite the existing key.\n\nPublic keys must be [ES256](https://ldapwiki.com/wiki/Wiki.jsp?page=ES256). For more information, see the [nRF Cloud REST Authentication documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/RESTOverview.html#authentication).\n\nThis endpoint supports [asynchronous bulk operations](#tag/Bulk-Ops-Requests). Your data will be validated, and if valid, you\nwill receive an HTTP 202 response with a `bulkOpsRequestId`. You can use this id with the bulk ops endpoints\nto track the request's processing status. If the bulk ops request indicates FAILED status, check the JSON errors file (URL in the bulk\nops request details), fix the offending rows, then re-submit the CSV with only those rows.\n\nEach CSV row must in the format `deviceId,\"keyPem\"`, where:\n\n|Field|Required|Description|Validation Pattern|\n|---|:---:|---|---|\n|`deviceId`<div style=\"width:90px\"></div>|Yes|A globally unique device id (UUIDs are highly recommended)|`/^[a-z0-9:_-]{1,128}$/i`|\n|`keyPem`|Yes|A unique [ES256](https://ldapwiki.com/wiki/Wiki.jsp?page=ES256) public key in PEM format, wrapped in double quotes (to allow for line breaks in CSV)|`/^-{5}BEGIN PUBLIC KEY-{5}(\\r\\n\\|\\r\\|\\n)([^-]+)(\\r\\n\\|\\r\\|\\n)-{5}END PUBLIC KEY-{5}(\\r\\n\\|\\r\\|\\n)$/`|\n\nExample of a CSV row:\n   #### All values set\n<span style=\"font-family:Courier\">f69c0e45-7f04-4949-8def-bb2215b4223e,\"-----BEGIN PUBLIC KEY-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END PUBLIC KEY-----<br/>\"</span>\n\nAlso note:\n   * Max number of rows is 1000.\n   * Do not use a header.\n   * Do not leave any blank lines.\n\nExample of uploading CSV data as a binary file:\n\n```sh\ncurl -X POST $API_HOST/v1/devices/public-keys \\\n--data-binary @$PATH_TO_CSV_FILE \\\n-H \"Content-Type: application/octet-stream\" \\\n-H \"Authorization: Bearer $API_KEY\"\n```\nNote that for some unknown reason, curl will strip the final line break in each ES256 public key when sending the CSV file using a non-binary content-type, e.g., using syntax such as `-d @$PATH_TO_CSV_FILE -H \"Content-Type: text/csv\"`. Therefore, with curl use `--data-binary` only. If you want to send the CSV as text, use a REST client like Postman or Insomnia.",
        "summary": "RegisterPublicKeys",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "content-type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RestApiPayloadContentTypeWithCsv"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterPublicKeysPayload"
              }
            }
          }
        }
      }
    },
    "/devices/certificates": {
      "post": {
        "operationId": "RegisterCertificates",
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bulkOpsRequestId": {
                      "$ref": "#/components/schemas/ULID"
                    }
                  },
                  "required": [
                    "bulkOpsRequestId"
                  ],
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Validation Failed"
          }
        },
        "description": "Register one or more device certificates. If a device has already been added to your team (onboarded) this will delete its existing cert and replace it with the new one.\nIt is recommended to update existing devices with their new certificates before registering them here.\nIf it is not onboarded, please use the [OnboardDevice endpoint](#operation/OnboardDevice) to complete the process which allows your device(s) to use nRF Cloud.\n\nThis endpoint supports [asynchronous bulk operations](#tag/Bulk-Ops-Requests). Your data will be validated, and if valid, you\nwill receive an HTTP 202 response with a `bulkOpsRequestId`. You can use this id with the bulk ops endpoints\nto track the request's processing status. If the bulk ops request indicates FAILED status, check the JSON errors file (URL in the bulk\nops request details), fix the offending rows, then re-submit the CSV with only those rows.\n\nEach CSV row must in the format `deviceId,\"certPem\"`, where:\n\n|Field|Required|Description|Validation Pattern|\n|---|:---:|---|---|\n|`deviceId`<div style=\"width:90px\"></div>|Yes|A globally unique device id (UUIDs are highly recommended)|`/^[a-z0-9:_-]{1,128}$/i`|\n|`certPem`|Yes|A unique [ES256](https://ldapwiki.com/wiki/Wiki.jsp?page=ES256) X.509 certificate in PEM format, wrapped in double quotes (to allow for line breaks in CSV)|`/^-{5}BEGIN CERTIFICATE-{5}(\\r\\n\\|\\r\\|\\n)([^-]+)(\\r\\n\\|\\r\\|\\n)-{5}END CERTIFICATE-{5}(\\r\\n\\|\\r\\|\\n)$/`|\n\nExample of a CSV row:\n   #### All values set\n<span style=\"font-family:Courier\">f69c0e45-7f04-4949-8def-bb2215b4223e,\"-----BEGIN CERTIFICATE-----<br/>MIIB7DCCAZMCFD...Av3CVgjzn5BLS03X7lyf4w==<br/>\n-----END CERTIFICATE-----<br/>\"</span>\n\nAlso note:\n   * Max number of rows is 1000.\n   * Do not use a header.\n   * Do not leave any blank lines.\n\nExample of uploading CSV data as a binary file:\n\n```sh\ncurl -X POST $API_HOST/v1/devices/certificates \\\n--data-binary @$PATH_TO_CSV_FILE \\\n-H \"Content-Type: application/octet-stream\" \\\n-H \"Authorization: Bearer $API_KEY\"\n```\nNote that for some unknown reason, curl will strip the final line break in each ES256 public key when sending the CSV file using a non-binary content-type, e.g., using syntax such as `-d @$PATH_TO_CSV_FILE -H \"Content-Type: text/csv\"`. Therefore, with curl use `--data-binary` only. If you want to send the CSV as text, use a REST client like Postman or Insomnia.",
        "summary": "RegisterCertificates",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "content-type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RestApiPayloadContentTypeWithCsv"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterCertificatesPayload"
              }
            }
          }
        }
      }
    },
    "/devices/tags": {
      "get": {
        "deprecated": true,
        "operationId": "ListDeviceTags",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_DeviceTag-or-JSONataTransformedResponse_"
                }
              }
            }
          }
        },
        "description": "List all device tags (groups) for your account.",
        "summary": "ListDeviceTags",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "pageLimit",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/devices/{deviceId}/messages": {
      "post": {
        "operationId": "SendDeviceMessage",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Allows a user or [IP device](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Properties/Types.html) to\nsend a message that is subsequently published over an MQTT topic, on behalf of the\nIP device whose deviceId is specified. The device ID for the message comes from the topic. For instance,\nif the topic property on the request is `m/d/nrf-352656101081837/d2c/custom`, the device ID determined\nfor the message will be `'nrf-352656101081837'`.\n\nFor more information, see\n[Sending device messages](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/DeviceMessages.html#sending-device-messages).",
        "summary": "SendDeviceMessage",
        "tags": [
          "Messages"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceMessageInput"
              }
            }
          }
        }
      }
    },
    "/devices/{deviceId}/name": {
      "put": {
        "operationId": "UpdateDeviceName",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Update the device name. The default name is the same as the device id.",
        "summary": "UpdateDeviceName",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceName"
              }
            }
          }
        }
      }
    },
    "/devices/{deviceId}/state": {
      "patch": {
        "operationId": "UpdateDeviceState",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Modify the device's state as stored in its shadow. You do not have to pass the entire shadow. You can update a specific portion by setting the correct JSON field path:\n```sh\nexport DEVICE_VERSION=$(curl $API_HOST/v1/devices/$DEVICE_ID -H \"Authorization: Bearer $API_KEY\" | jq -r '.[\"$meta\"].version')\ncurl -X PATCH $API_HOST/v1/devices/$DEVICE_ID/state -d '{ \"reported\": { \"device\": { \"serviceInfo\": { \"fota_v1\": [\"BOOT\"] } } } }' -H \"Authorization: Bearer $API_KEY\" -H \"Content-Type: application/json\" -H \"If-Match: $DEVICE_VERSION\"\n```",
        "summary": "UpdateDeviceState",
        "tags": [
          "IP Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceStateInput"
              }
            }
          }
        }
      }
    },
    "/devices/{deviceId}/tags": {
      "put": {
        "deprecated": true,
        "operationId": "UpdateDeviceTags",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Update a device's tags. Useful for labeling, categorizing, grouping, etc.",
        "summary": "UpdateDeviceTags",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/DeviceTag"
                },
                "type": "array"
              }
            }
          }
        }
      }
    },
    "/devices/{deviceId}/image": {
      "put": {
        "deprecated": true,
        "operationId": "UpdateDeviceImage",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Update the image associated with a device, as displayed on nrfCloud.com. If uploading an image, add image to the request body (JPEG or PNG only). Otherwise, use the `sourceUrl` query param to set the device image to an existing image on the Web.",
        "summary": "UpdateDeviceImage",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "query",
            "name": "sourceUrl",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Url"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestApiPayload"
              }
            }
          }
        }
      },
      "delete": {
        "deprecated": true,
        "operationId": "DeleteDeviceImage",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "For a Web URL of an image associated with a device, dissociate the URL from the device. For an image file stored for a device, delete the image file.",
        "summary": "DeleteDeviceImage",
        "tags": [
          "All Devices"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          }
        ]
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "GetSpec",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Fetch the JSON document of this REST API, in OpenAPI format.\nREST API tools such as Insomnia can import it into a request collection.",
        "summary": "FetchOpenApiSpec",
        "tags": [
          "OpenAPI Specification"
        ],
        "security": [],
        "parameters": []
      }
    },
    "/firmwares": {
      "post": {
        "operationId": "UploadFirmware",
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "uris": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "uris"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "Upload a firmware bundle as a .zip file, whether binary or base64-encoded. The bundle must contain a manifest.json file that conforms to this JSON schema:\n```\n{\n   name?: string,\n   description?: string,\n   fwversion: string,\n   'format-version': 1,\n   files: {\n     file: string,\n     type: 'application' | 'mcuboot' | 'bootloader' | 'softdevice' | 'init_packet',\n     size: number\n   }[]\n }\n```\nNotes:\n- `?` fields are optional\n- `files` is an array of objects, all of which should be of the same `type`.\n- `file` must have a `.bin` extension. Host-side tools like [nRF Connect for Desktop Programmer](https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop) can be used to convert `.hex` files to `.bin`.\n- `type` values `application` and `mcuboot` apply only to nRF91 FOTA. Values `softdevice` and `init_packet` apply only to Bluetooth LE FOTA.\n- For Bluetooth LE devices using FOTA, the `.zip` file must contain both the init_packet and the firmware image (application or soft device). The `type` field for the manifest must be `application` or `softdevice`, not `init_packet`.\n- `'format-version'` should always be set to `1`\n- `fwversion` is validated against this regular expression: `/^[a-zA-Z0-9._-]{1,60}$/`\n- The Zephyr build system produces dfu_application.zip in the build/zephyr folder, which contains a manifest.json plus the update binary. However, the manifest is currently generated without the required `fwversion` field, so you will need to add that field.\n- If you use the nRFCloud.com user interface to upload your zip file, you are given options to fill in the `name`, `description`, and `fwversion` fields. The UI will then properly generate the manifest.json file and zip file.\n- Although nRF Cloud supports modem FOTA, we do not allow uploading modem firmware. These updates are made available only by Nordic Semiconductor.\n\nAn example of a valid manifest:\n```\n{\n   \"name\": \"My application update\",\n   \"description\": \"Changelog: Fixed an issue with sleep mode. Power consumption improvements.\",\n   \"fwversion\": \"1.1\",\n   \"format-version\": 1,\n   \"files\": [\n       {\n           \"file\": \"my_application_v1_1.hex.bin\",\n           \"type\": \"application\",\n           \"size\": 695672\n       }\n   ]\n}\n```\nFollowing are examples of uploading with curl (base64 and binary):\n\nUsing base64 encoded content:\n```sh\nexport FILE=$(base64 path/to/my-file.zip)\n# If you get a console error such as \"Argument list too long\" try using a REST client like Postman.\n\n# UTF-8\ncurl -X POST $API_HOST/v1/firmwares \\\n   -H \"Authorization: Bearer $API_KEY\" \\\n   -H \"Content-Type: text/plain;charset=UTF8\" \\\n   -d $FILE\n\n# ASCII\ncurl -X POST $API_HOST/v1/firmwares \\\n   -H \"Authorization: Bearer $API_KEY\" \\\n   -H \"Content-Type: text/plain;charset=ASCII\" \\\n   -d $FILE\n\n# Plain Text\ncurl -X POST $API_HOST/v1/firmwares \\\n   -H \"Authorization: Bearer $API_KEY\" \\\n   -H \"Content-Type: text/plain\" \\\n   -d $FILE\n```\nUsing binary content:\n```sh\n# Octet-stream\ncurl -X POST $API_HOST/v1/firmwares \\\n   -H \"Authorization: Bearer $API_KEY\" \\\n   -H \"Content-Type: application/octet-stream\" \\\n   --data-binary @/path/to/my-file.zip\n\n# ZIP\ncurl -X POST $API_HOST/v1/firmwares \\\n   -H \"Authorization: Bearer $API_KEY\" \\\n   -H \"Content-Type: application/zip\" \\\n   --data-binary @/path/to/my-file.zip\n```\nFor more information, see the [FOTA documentation](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/FirmwareUpdate/FOTAOverview.html).",
        "summary": "UploadFirmware",
        "tags": [
          "Firmware Bundles"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "content-type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RestApiPayloadContentTypeWithZip"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestApiPayload"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "ListFirmware",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_Firmware_"
                }
              }
            }
          }
        },
        "summary": "ListFirmware",
        "tags": [
          "Firmware Bundles"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "description": "Whether or not to return a list of modem firmware instead of the current tenant's firmware",
            "in": "query",
            "name": "modemOnly",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ]
      }
    },
    "/firmwares/{bundleId}": {
      "delete": {
        "operationId": "DeleteFirmware",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "summary": "DeleteFirmware",
        "tags": [
          "Firmware Bundles"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "bundleId",
            "required": true,
            "schema": {}
          }
        ]
      }
    },
    "/fota-job-execution-statuses/{jobId}": {
      "get": {
        "operationId": "ListFOTAJobExecutionStatuses",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_FOTAJobExecutionState_"
                }
              }
            }
          }
        },
        "summary": "ListFOTAJobExecutionStatuses",
        "tags": [
          "FOTA Job Executions"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FotaV2JobExecutionEvents"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/fota-jobs": {
      "post": {
        "operationId": "CreateFOTAJob",
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "jobId": {
                      "$ref": "#/components/schemas/UUID"
                    }
                  },
                  "required": [
                    "jobId"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "summary": "CreateFOTAJob",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJobInput"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "ListFOTAJobs",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_FOTAV2Job-or-FotaJobV2Plus_"
                }
              }
            }
          }
        },
        "summary": "ListFOTAJobs",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/fota-jobs/{jobId}/apply": {
      "post": {
        "operationId": "ApplyFOTAJob",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "summary": "ApplyFOTAJob",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          }
        ]
      }
    },
    "/fota-jobs/{jobId}": {
      "get": {
        "operationId": "FetchFOTAJob",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FOTAV2Job"
                }
              }
            }
          }
        },
        "summary": "FetchFOTAJob",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          }
        ]
      },
      "delete": {
        "operationId": "DeleteFOTAJob",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "Deletes a fota job. Does not affect executions associated with this job.",
        "summary": "DeleteFOTAJob",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          }
        ]
      }
    },
    "/fota-jobs/{jobId}/cancel": {
      "put": {
        "operationId": "CancelFOTAJob",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "summary": "CancelFOTAJob",
        "tags": [
          "FOTA Jobs"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          },
          {
            "in": "query",
            "name": "reason",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/fota-job-executions/{deviceId}": {
      "get": {
        "operationId": "ListFOTAJobExecutionsForDevice",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_FOTAJobExecution_"
                }
              }
            }
          }
        },
        "summary": "ListFOTAJobExecutionsForDevice",
        "tags": [
          "FOTA Job Executions"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/fota-job-executions/{deviceId}/current": {
      "get": {
        "operationId": "FetchCurrentPendingFOTAJobExecution",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FOTAJobExecution"
                }
              }
            }
          }
        },
        "description": "Fetches the pending (QUEUED or IN_PROGRESS) job execution with the earliest createdAt date. This will allow\nconsistent FIFO (First In First Out) processing of incoming executions.",
        "summary": "FetchCurrentPendingFOTAJobExecution",
        "tags": [
          "FOTA Job Executions"
        ],
        "security": [
          {
            "Simple Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "description": "Return only executions with the given firmware type",
            "in": "query",
            "name": "firmwareType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FirmwareTypes"
            }
          }
        ]
      }
    },
    "/fota-job-executions/{deviceId}/{jobId}": {
      "get": {
        "operationId": "FetchFOTAJobExecution",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/FOTAJobExecution"
                    },
                    {
                      "properties": {
                        "jobDocument": {
                          "properties": {
                            "path": {},
                            "host": {},
                            "version": {},
                            "bundleId": {
                              "allOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "$ref": "#/components/schemas/Tagged_BundleId_"
                                }
                              ]
                            },
                            "fileSize": {},
                            "firmwareType": {}
                          },
                          "required": [
                            "path",
                            "host",
                            "version",
                            "bundleId",
                            "fileSize",
                            "firmwareType"
                          ],
                          "type": "object"
                        },
                        "statusDetail": {
                          "type": "string"
                        },
                        "status": {
                          "$ref": "#/components/schemas/FotaV2JobExecutionEvents"
                        },
                        "lastUpdatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "deviceId": {
                          "$ref": "#/components/schemas/DeviceId"
                        },
                        "jobId": {
                          "$ref": "#/components/schemas/UUID"
                        },
                        "executionId": {
                          "$ref": "#/components/schemas/UUID"
                        },
                        "tenantId": {
                          "$ref": "#/components/schemas/UUID"
                        }
                      },
                      "required": [
                        "jobDocument",
                        "statusDetail",
                        "status",
                        "lastUpdatedAt",
                        "createdAt",
                        "deviceId",
                        "jobId",
                        "executionId",
                        "tenantId"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "FetchFOTAJobExecution",
        "tags": [
          "FOTA Job Executions"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          }
        ]
      },
      "patch": {
        "operationId": "UpdateFOTAJobExecutionStatus",
        "responses": {
          "202": {
            "description": "Updated FOTA job execution status"
          }
        },
        "summary": "UpdateFOTAJobExecutionStatus",
        "tags": [
          "FOTA Job Executions"
        ],
        "security": [
          {
            "Simple Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/JobId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "details": {
                    "type": "string"
                  },
                  "status": {
                    "$ref": "#/components/schemas/FotaV2JobExecutionEvents"
                  }
                },
                "required": [
                  "status"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/messages": {
      "get": {
        "operationId": "ListMessages",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_DeviceMessage_"
                }
              }
            }
          }
        },
        "description": "Fetch historical device messages.\n\nCurrently supported parameter combinations:\n\n`appId + deviceId`\n\n`topic + deviceId`\n\n`appId`\n\n`deviceId`\n\nNot supported:\n\n`topic` (without deviceId)\n\n`appId + topic`\n\n`appId + topic + deviceId`\n\nFor more information, see our [nRF Cloud documentation on device messages](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/DeviceMessages.html).",
        "summary": "ListMessages",
        "tags": [
          "Messages"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "inclusiveStart",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            },
            "deprecated": true
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            }
          },
          {
            "in": "query",
            "name": "exclusiveEnd",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            },
            "deprecated": true
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            }
          },
          {
            "description": "Filter returned messages by appId. Primarily used by Asset Tracker, AppId is taken from the \"appId\" property of\nthe message body and is intended to represent the type of data being sent. This can be used to categorize your\nmessages for easy filtering when using the same topic.",
            "in": "query",
            "name": "appId",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/MessageAppId"
            }
          },
          {
            "description": "A device Id to fetch messages for. Can be specified with appId or topic.",
            "in": "query",
            "name": "deviceId",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "description": "Fetch messages for a single topic. Must be specified together with deviceId.",
            "in": "query",
            "name": "topic",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/MqttTopic"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageSort",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageSort"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/alerts": {
      "get": {
        "deprecated": true,
        "operationId": "ListDeviceAlerts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_DeviceAlert_"
                }
              }
            }
          }
        },
        "description": "**Deprecated.** Device alerts are being retired and this endpoint may be removed in a future release.\nFor legacy alerts migration details, see [Migrate nRF Cloud Alerts to Memfault Trace Events](https://docs.nrfcloud.com/docs/reference/reference-alerts-migration).\n\nFetch device alerts. For more information, see our [nRF Cloud documentation on device alerts](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/AlertsAndLogs/AlertsOverview.html).",
        "summary": "ListDeviceAlerts (Deprecated)",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "description": "Fetch alerts optionally by device ids.",
            "in": "query",
            "name": "deviceIds",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DeviceId"
              }
            }
          },
          {
            "description": "Fetch alerts optionally by Status. By default, both `ACTIVE` and `ARCHIVED` alerts are returned.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AlertStatus"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageSort",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageSort"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          }
        ]
      }
    },
    "/alerts/{id}/archive": {
      "patch": {
        "deprecated": true,
        "operationId": "ArchiveDeviceAlert",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchivedAlert"
                }
              }
            }
          }
        },
        "description": "**Deprecated.** Device alerts are being retired and this endpoint may be removed in a future release.\nFor legacy alerts migration details, see [Migrate nRF Cloud Alerts to Memfault Trace Events](https://docs.nrfcloud.com/docs/reference/reference-alerts-migration).\n\nArchives an Alert. For more information, see our [nRF Cloud documentation on device alerts](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/AlertsAndLogs/AlertsOverview.html).",
        "summary": "ArchiveDeviceAlert (Deprecated)",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "description": "The unique identifier for the alert",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            }
          }
        ]
      }
    },
    "/alerts/{id}/restore": {
      "patch": {
        "deprecated": true,
        "operationId": "RestoreDeviceAlert",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveAlert"
                }
              }
            }
          }
        },
        "description": "**Deprecated.** Device alerts are being retired and this endpoint may be removed in a future release.\nFor legacy alerts migration details, see [Migrate nRF Cloud Alerts to Memfault Trace Events](https://docs.nrfcloud.com/docs/reference/reference-alerts-migration).\n\nRestore an archived Alert. For more information, see our [nRF Cloud documentation on device alerts](https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/MessagesAndAlerts/AlertsAndLogs/AlertsOverview.html).",
        "summary": "RestoreDeviceAlert (Deprecated)",
        "tags": [
          "Alerts"
        ],
        "security": [
          {
            "Simple Token": []
          }
        ],
        "parameters": [
          {
            "description": "The unique identifier for the alert",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            }
          }
        ]
      }
    },
    "/location/agps": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "get": {
        "operationId": "GetAssistanceDataLegacy",
        "responses": {
          "206": {
            "description": "Contains chunk of file defined by the Range header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistanceResponseBuffer"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/agps</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/agps</code></p>\n</div>\n\n<div style=\"background-color: #f8d7da; color: #721c24; text-align: center; border: 1px solid #f5c6cb; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has been deprecated. Please use the <a href=\"#tag/GNSS/operation/GetAssistanceData\">GNSS GetAssistanceData endpoint</a> instead.</div>\n\nProvides assistance data to the device. Enables a faster time-to-first-fix (TTFF) for the GPS modem. Returns the modem\nparameters for the nRF91 GPS modem in a chunk. The chunk size is determined by the request Range header. See `GetFileSize` [endpoint](#operation/GetFileSize) for details.\n\n__Basic Request__:\n```sh\ncurl -G $API_HOST/v1/location/agps -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/octet-stream\" -H \"Range: bytes=0-2200\" --output agps.bin\n```\n\n__Custom Request__:\n```sh\ncurl -G \"$API_HOST/v1/location/agps\" -d \"types=8\" -d \"mcc=244\" -d \"mnc=91\" -d \"tac=4099\" -d \"eci=36078631\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/octet-stream\" -H \"Range: bytes=0-2200\" --output agps.bin\n```\n\n__Type definitions__:\n- 1 = GPS UTC\n- 2 = GPS Ephemerides\n- 3 = GPS Almanac\n- 4 = Klobuchar Ionospheric Correction\n- 5 = Nequick Ionospheric Correction\n- 6 = GPS Time of Week\n- 7 = GPS System Clock\n- 8 = Location (lat/lon of cell)\n- 9 = GPS Integrity",
        "summary": "GetAssistanceData",
        "tags": [
          "Assisted GPS"
        ],
        "deprecated": true,
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "requestType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/RequestType"
            },
            "deprecated": true
          },
          {
            "description": "Deprecated in favor of the 'types' param.",
            "in": "query",
            "name": "customTypes",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NrfGpsMessageType"
              }
            },
            "deprecated": true
          },
          {
            "description": "Type of assistance data (see description above). Defaults to [1, 2, 3, 4, 6, 7, 9]",
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NrfGpsMessageType"
              }
            }
          },
          {
            "in": "query",
            "name": "mcc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mcc"
            }
          },
          {
            "in": "query",
            "name": "mnc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mnc"
            }
          },
          {
            "in": "query",
            "name": "tac",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Tac"
            }
          },
          {
            "in": "query",
            "name": "eci",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Eci"
            }
          },
          {
            "in": "query",
            "name": "rsrp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Rsrp"
            }
          },
          {
            "in": "query",
            "name": "filtered",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FilteredEphemerisFlag"
            }
          },
          {
            "in": "query",
            "name": "mask",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SatelliteMaskAngle"
            }
          },
          {
            "in": "header",
            "name": "range",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ]
      },
      "head": {
        "operationId": "GetFileSize",
        "responses": {
          "200": {
            "description": "Body is empty. Response \"Content-Length\" header contains the size of the file (bytes).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistanceBuffer"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/agps</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/agps</code></p>\n</div>\n\n<div style=\"background-color: #f8d7da; color: #721c24; text-align: center; border: 1px solid #f5c6cb; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has been deprecated. Please use the <a href=\"#tag/GNSS/operation/GetAssistanceDataSize\">GNSS GetFileSize endpoint</a> instead.</div>\n\nThis endpoint is for advanced use cases where you need to set the Range header to something other than the payload size.\nNormally you will just set the Range header to the payload limit for your modem. It gets the payload size of the modem\nparameters. This endpoint returns the totalBytes in the `Content-Length` response header, no body.\nThe `Content-Length` header in the response can be used in the `Range` header for a subsequent `GET` request (same query string, just\n`GET` instead of `HEAD` + `Range` header).\n```sh\ncurl -I \"$API_HOST/v1/location/agps\" -H \"Authorization: Bearer $JWT\"\n```\n__Type definitions__:\n- 1 = GPS UTC\n- 2 = GPS Ephemerides\n- 3 = GPS Almanac\n- 4 = Klobuchar Ionospheric Correction\n- 5 = Nequick Ionospheric Correction\n- 6 = GPS Time of Week\n- 7 = GPS System Clock\n- 8 = Location (lat/lon of cell)\n- 9 = GPS Integrity",
        "summary": "GetFileSize",
        "tags": [
          "Assisted GPS"
        ],
        "deprecated": true,
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "requestType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/RequestType"
            },
            "deprecated": true
          },
          {
            "description": "Deprecated in favor of the 'types' param.",
            "in": "query",
            "name": "customTypes",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NrfGpsMessageType"
              }
            },
            "deprecated": true
          },
          {
            "description": "Type of assistance data (see description above). Defaults to [1, 2, 3, 4, 6, 7, 9]",
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NrfGpsMessageType"
              }
            }
          },
          {
            "in": "query",
            "name": "mcc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mcc"
            }
          },
          {
            "in": "query",
            "name": "mnc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mnc"
            }
          },
          {
            "in": "query",
            "name": "tac",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Tac"
            }
          },
          {
            "in": "query",
            "name": "eci",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Eci"
            }
          },
          {
            "in": "query",
            "name": "rsrp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Rsrp"
            }
          },
          {
            "in": "query",
            "name": "filtered",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FilteredEphemerisFlag"
            }
          },
          {
            "in": "query",
            "name": "mask",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SatelliteMaskAngle"
            }
          }
        ]
      }
    },
    "/location/cell": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "post": {
        "operationId": "GetLocationFromCells",
        "responses": {
          "200": {
            "description": "Returns lat/lon coordinates and uncertainty for a device using cell data.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CellResponseWithFulfillment"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/cell</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/cell</code></p>\n</div>\n\n<div style=\"background-color: #fff3cd; color: #856404; text-align: center; border: 1px solid #ffeeba; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has an alternative. See the <a href=\"#tag/Ground-Fix\">ground fix endpoint</a> for more details.</div>\n\nGets the lat, lon, and uncertainty values for the LTE, GSM, or WCDMA cell(s) passed. If the optional `nmr` parameter is passed the endpoint operates in a \"multi-cell\" mode, using\nmore than one cell to determine a more accurate location. At least one cell is required. An empty `lte`, `ltecatm`, `nbiot`, `gsm`, or `wcdma` array is treated the same as an omitted field.\n\n__Basic Request__:\n```sh\ncurl -X POST \"$API_HOST/v1/location/cell\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"{\\\"lte\\\":[{\\\"mcc\\\": 244, \\\"mnc\\\": 91,\\\"tac\\\": 4099,\\\"eci\\\":36078631}]}\"\n```\n\n__Save device location and silence response__:\n```sh\ncurl --verbose -X POST \"$API_HOST/v1/location/cell?doReply=0\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"{\\\"lte\\\":[{\\\"mcc\\\": 244, \\\"mnc\\\": 91,\\\"tac\\\": 4099,\\\"eci\\\":36078631}]}\"\n```",
        "summary": "GetLocationFromCells",
        "tags": [
          "Cell Location"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "doReply",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DoReplyFlag"
            }
          },
          {
            "in": "query",
            "name": "fallback",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FallbackFlag"
            }
          },
          {
            "in": "query",
            "name": "hiConf",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/HighConfidenceFlag"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CellRequest"
              }
            }
          }
        }
      }
    },
    "/location/geo": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "get": {
        "operationId": "GetAddressDataFromCoordinates",
        "responses": {
          "200": {
            "description": "Returns address data for a set of WGS 84 coordinates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReverseGeoResponse"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/geo</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/geo</code></p>\n</div>\n\nConvert a set of WGS 84 coordinates into a physical address. Only country and state/province/region are guaranteed.\nHigher accuracy properties (street number, street, etc) are provided when available.\n\nA 404 status code (not found) will be returned if nRF Cloud cannot determine at least country and state/province/region for the provided\ncoordinates.\n\nnRF Cloud returns the address data closest to the submitted coordinates. Coordinates from a higher-density urban areas generally\nprovide better results. Coordinates from rural areas may return address data further away from the submitted coordinates. The system\nreturns an uncertainty property, which is the distance in meters away from the submitted coordinates.\n\nCoordinates obtained with a high-accuracy method (GNSS / Wi-Fi) will provide address data closer to the actual device location\nthan coordinates obtained with lower-accuracy methods like cellular.\n\n```sh\ncurl --location --request GET \"$API_HOST/v1/location/geo?lat=45.524098&lon=-122.688408\" \\\n--header \"Authorization: Bearer $JWT\" \\\n--header \"Content-Type: application/json\"\n```",
        "summary": "GetAddressDataFromCoordinates",
        "tags": [
          "Geocoding"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "lat",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            }
          },
          {
            "in": "query",
            "name": "lon",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ]
      }
    },
    "/location/gnss": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "post": {
        "operationId": "RecordGnssCoordinates",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/gnss</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/gnss</code></p>\n</div>\n\nReport device coordinates, commonly obtained from the device's GNSS modem.\n\n__Basic Request__:\n```sh\ncurl --location --request POST \"$API_HOST/v1/location/gnss\" \\\n--header \"Authorization: Bearer $JWT\" \\\n--header \"Content-Type: application/json\" \\\n--data-raw \"{\\\"lat\\\":$LAT, \\\"lon\\\":$LON, \\\"spd\\\":$SPD, \\\"acc\\\":$ACC, \\\"alt\\\":$ALT, \\\"hdg\\\":$HDG}\"\n```",
        "summary": "RecordGnssCoordinates",
        "tags": [
          "GNSS"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/GpsRequest"
                  },
                  {
                    "$ref": "#/components/schemas/NmeaSentence"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/location/agnss": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "post": {
        "operationId": "GetAssistanceData",
        "responses": {
          "206": {
            "description": "Contains chunk of file defined by the Range header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistanceResponseBuffer"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/agnss</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/agnss</code></p>\n</div>\n\nProvides assistance data to the device. Enables a faster time-to-first-fix (TTFF) for the GNSS modem. Returns the modem\nparameters for the nRF GNSS modem in a chunk. The chunk size is determined by the request Range header.\nSee `GetAssistanceDataSize` [endpoint](#tag/GNSS/operation/GetAssistanceDataSize) for details.\n\n__Basic Request__:\n```sh\ncurl -X POST \"$API_HOST/v1/location/agnss\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -H \"Accept: application/octet-stream\" -H \"Range: bytes=0-2200\" --output assistance.bin\n```\n\n__Custom Request__:\n```sh\ncurl -X POST \"$API_HOST/v1/location/agnss\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -H \"Accept: application/octet-stream\" -H \"Range: bytes=0-2200\" --output assistance.bin -d \"{\\\"types\\\": [8], \\\"mcc\\\": 244, \\\"mnc\\\": 91, \\\"tac\\\": 4099, \\\"eci\\\": 36078631}\"\n```\n__Type definitions__:\n- 1 = GPS UTC\n- 2 = GPS Ephemerides\n- 3 = GPS Almanac\n- 4 = Klobuchar Ionospheric Correction\n- 5 = Nequick Ionospheric Correction\n- 6 = GPS Time of Week\n- 7 = GPS System Clock\n- 8 = Location (lat/lon of cell)\n- 9 = GPS Integrity\n- 11 = QZSS Almanac\n- 12 = QZSS Ephemerides\n- 13 = QZSS Integrity",
        "summary": "GetAssistanceData",
        "tags": [
          "GNSS"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "range",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssistanceRequest"
              }
            }
          }
        }
      },
      "head": {
        "operationId": "GetAssistanceDataSize",
        "responses": {
          "200": {
            "description": "Body is empty. Response \"Content-Length\" header contains the size of the file (bytes).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistanceBuffer"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/agnss</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/agnss</code></p>\n</div>\n\nThis endpoint is for advanced use cases where you need to set the Range header to something other than the payload size.\nNormally you will just set the Range header to the payload limit for your modem. It gets the payload size of the modem\nparameters. This endpoint returns the totalBytes in the `Content-Length` response header, no body.\nThe `Content-Length` header in the response can be used in the `Range` header for subsequent requests.\n\n__Basic Request__:\n```sh\ncurl -I $API_HOST/v1/location/agnss -H \"Authorization: Bearer $JWT\" -d \"{\\\"types\\\": [8], \\\"mcc\\\": 244, \\\"mnc\\\": 91, \\\"tac\\\": 4099, \\\"eci\\\": 36078631}\"\n```\n\n__Type definitions__:\n- 1 = GPS UTC\n- 2 = GPS Ephemerides\n- 3 = GPS Almanac\n- 4 = Klobuchar Ionospheric Correction\n- 5 = Nequick Ionospheric Correction\n- 6 = GPS Time of Week\n- 7 = GPS System Clock\n- 8 = Location (lat/lon of cell)\n- 9 = GPS Integrity\n- 11 = QZSS Almanac\n- 12 = QZSS Ephemerides\n- 13 = QZSS Integrity",
        "summary": "GetAssistanceDataSize",
        "tags": [
          "GNSS"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "description": "Type of assistance data (see description above). Defaults to [1, 2, 3, 4, 6, 7, 9]",
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NrfMessageType"
              }
            }
          },
          {
            "in": "query",
            "name": "mcc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mcc"
            }
          },
          {
            "in": "query",
            "name": "mnc",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Mnc"
            }
          },
          {
            "in": "query",
            "name": "tac",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Tac"
            }
          },
          {
            "in": "query",
            "name": "eci",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Eci"
            }
          },
          {
            "in": "query",
            "name": "rsrp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Rsrp"
            }
          },
          {
            "in": "query",
            "name": "filtered",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FilteredEphemerisFlag"
            }
          },
          {
            "in": "query",
            "name": "mask",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SatelliteMaskAngle"
            }
          }
        ]
      }
    },
    "/location/pgnss": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "get": {
        "operationId": "GetPredictedAssistanceData",
        "responses": {
          "200": {
            "description": "Link to the P-GPS binary payload file for download.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "path": {
                      "$ref": "#/components/schemas/PgpsFilePath"
                    },
                    "host": {
                      "$ref": "#/components/schemas/PgpsHost"
                    }
                  },
                  "required": [
                    "path",
                    "host"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/pgnss</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/pgnss</code></p>\n</div>\n\nGenerates up to one week of GNSS predictions. The predictions are used by the nRF91 GNSS modem\nto enable a faster time-to-first-fix (TTFF) and provide offline navigation when out of range of an LTE cell.\n\nReturns a link for easy download of the predictions file.\n\n__Basic Request__:\n```sh\ncurl -G $API_HOST/v1/location/pgnss -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\"\n```\n__Custom Request__:\n```sh\ncurl -G $API_HOST/v1/location/pgnss  -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"predictionCount=42\" -d \"predictionIntervalMinutes=240\" -d \"startGpsDay=15131\" -d \"startGpsTimeOfDaySeconds=0\"\n```",
        "summary": "GetPredictionData",
        "tags": [
          "GNSS"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "predictionCount",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PredictionCount"
            }
          },
          {
            "in": "query",
            "name": "predictionIntervalMinutes",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PredictionInterval"
            }
          },
          {
            "in": "query",
            "name": "startGpsDay",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/StartGpsDay"
            }
          },
          {
            "in": "query",
            "name": "startGpsTimeOfDaySeconds",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/StartGpsTime"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ]
      }
    },
    "/location/ground-fix": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "post": {
        "operationId": "GetLocationFromCellsOrWifiNetworks",
        "responses": {
          "200": {
            "description": "Returns lat/lon coordinates and uncertainty for a device using cell or wifi data.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/GroundFixResponseWithFulfillment"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/ground-fix</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/ground-fix</code></p>\n</div>\n\nGets the lat, lon, and uncertainty values for the LTE/GSM/WCDMA cell(s) or wifi access points passed. Wifi will be prioritized and fall back to cell if unavailable.  At least one cell or two Wi-Fi access points are required, unless `fallback=singleWifi` is set, which allows a single Wi-Fi access point. An empty `lte`, `ltecatm`, `nbiot`, `gsm`, `wcdma`, or `wifi` array is treated the same as an omitted field.\n\nReturn JSON payload.\n\n__Basic Request__:\n```sh\ncurl -X POST \"$API_HOST/v1/location/ground-fix\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"{\\\"lte\\\":[{\\\"mcc\\\": 244, \\\"mnc\\\": 91,\\\"tac\\\": 4099,\\\"eci\\\":36078631}], \\\"wifi\\\":[{\\\"macAddress\\\": \\\"00-18-39-59-8C-53\\\", \\\"ssid\\\": \\\"my-wifi-network\\\", \\\"signalStrength\\\": -42}, {\\\"macAddress\\\": \\\"00:21:55:61:F3:0A\\\", \\\"ssid\\\": \\\"my-other-wifi-network\\\", \\\"signalStrength\\\": -22}]}\"\n```\n\n__Save device location and silence response__:\n```sh\ncurl --verbose -X POST \"$API_HOST/v1/location/ground-fix?doReply=false\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"{\\\"lte\\\":[{\\\"mcc\\\": 244, \\\"mnc\\\": 91,\\\"tac\\\": 4099,\\\"eci\\\":36078631}], \\\"wifi\\\":[{\\\"macAddress\\\": \\\"00-18-39-59-8C-53\\\", \\\"ssid\\\": \\\"my-wifi-network\\\", \\\"signalStrength\\\": -42}, {\\\"macAddress\\\": \\\"00:21:55:61:F3:0A\\\", \\\"ssid\\\": \\\"my-other-wifi-network\\\", \\\"signalStrength\\\": -22}]}\"\n```\n\n__Locate using a single Wi-Fi access point__:\n```sh\ncurl -X POST \"$API_HOST/v1/location/ground-fix?fallback=singleWifi\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"{\\\"wifi\\\":[{\\\"macAddress\\\": \\\"00-18-39-59-8C-53\\\", \\\"ssid\\\": \\\"my-wifi-network\\\", \\\"signalStrength\\\": -42}]}\"\n```",
        "summary": "GetLocationFromCellsOrWifiNetworks",
        "tags": [
          "Ground Fix"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "doReply",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DoReplyFlag"
            }
          },
          {
            "in": "query",
            "name": "fallback",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FallbackFlag"
            }
          },
          {
            "in": "query",
            "name": "hiConf",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/HighConfidenceFlag"
            }
          },
          {
            "in": "query",
            "name": "dist",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DistanceThresholdFlag"
            }
          },
          {
            "in": "query",
            "name": "alt",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AltLocationFlag"
            }
          },
          {
            "in": "query",
            "name": "reverseGeo",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ReverseGeoFlag"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/GroundFixRequest"
                  },
                  {
                    "$ref": "#/components/schemas/DeprecatedGroundFixRequest"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/location/history": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Authorize with an API key."
        }
      ],
      "get": {
        "operationId": "GetLocationHistory",
        "responses": {
          "200": {
            "description": "Contains JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResult_LocationTrackerItem_"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/history</code></p>\n<p><b>Authorize with an API key.</b><br><code>https://api.location.nrfcloud.com/v1/location/history</code></p>\n</div>\n\nGet location history for one, all, or a group of devices specified by tags parameter.\n\nNotes:\n- Location history data expires after ~6 months (27 weeks)\n- The `serviceType` field is intentionally empty for location data before December 10th 2021\n\n__Basic Request for device history__:\n```sh\ncurl -G $API_HOST/v1/location/history -d \"deviceId=$DEVICE_ID&start=2022-10-15T06:00:00.000Z&end=2022-10-16T18:30:00.000Z\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n__Paginated Request__:\n```sh\nexport PAGE_NEXT_TOKEN=$(curl -G $API_HOST/v1/location/history -d \"deviceId=$DEVICE_ID&start=2022-10-15T06:00:00.000Z&end=2022-10-16T18:30:00.000Z\" -H \"Authorization: Bearer $API_KEY\" | jq .pageNextToken)\n\ncurl -G $API_HOST/v1/location/history -d \"deviceId=$DEVICE_ID\" --data-urlencode \"pageNextToken=$PAGE_NEXT_TOKEN\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n__Request all devices location history__&dagger;:\n```sh\ncurl -G $API_HOST/v1/location/history -H \"Authorization: Bearer $API_KEY\"\n```\n\n__Request all devices last known location__&dagger;:\n```sh\ncurl -G $API_HOST/v1/location/history -d \"latest=true\" -H \"Authorization: Bearer $API_KEY\"\n```\n\n&dagger; Requires admin privileges",
        "summary": "GetLocationHistory",
        "tags": [
          "Location History"
        ],
        "security": [
          {
            "Simple Token": []
          },
          {
            "Organization Auth Token": []
          }
        ],
        "parameters": [
          {
            "description": "This is the canonical device id that is an optional parameter. Specify a device id to get its location history. If a device id is not provided,\nlocation history for all devices are returned. You must have admin privileges to perform this operation.",
            "in": "query",
            "name": "deviceId",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "description": "Get the last known location for all devices or a single device (if deviceId is supplied). You must have admin privileges.",
            "in": "query",
            "name": "latest",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "pageSort",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageSort"
            }
          },
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            }
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            }
          },
          {
            "in": "query",
            "name": "pageLimit",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageLimit"
            }
          },
          {
            "in": "query",
            "name": "pageNextToken",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PageNextToken"
            }
          },
          {
            "in": "query",
            "name": "deviceIdentifier",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "deprecated": true
          },
          {
            "in": "query",
            "name": "inclusiveStart",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            },
            "deprecated": true
          },
          {
            "in": "query",
            "name": "inclusiveEnd",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ISODateTimeString"
            },
            "deprecated": true
          },
          {
            "description": "If specified, only return location history for devices that have one of these Device Groups (tags). You must have admin privileges.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DeviceTag"
              }
            }
          }
        ]
      }
    },
    "/location/history/{deviceId}/{id}": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Authorize with an API key."
        }
      ],
      "delete": {
        "operationId": "DeleteLocationHistory",
        "responses": {
          "202": {
            "description": ""
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/history/{deviceId}/{id}</code></p>\n<p><b>Authorize with an API key.</b><br><code>https://api.location.nrfcloud.com/v1/location/history/{deviceId}/{id}</code></p>\n</div>\n\nDelete a location history record.",
        "summary": "DeleteLocationHistory",
        "tags": [
          "Location History"
        ],
        "security": [
          {
            "Simple Token": []
          },
          {
            "Organization Auth Token": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "deviceId",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DeviceId"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/LocationTrackerId"
            }
          }
        ]
      }
    },
    "/location/pgps": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "get": {
        "operationId": "GetPredictedAssistanceDataLegacy",
        "responses": {
          "200": {
            "description": "Link to the P-GPS binary payload file for download.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "path": {
                      "$ref": "#/components/schemas/PgpsFilePath"
                    },
                    "host": {
                      "$ref": "#/components/schemas/PgpsHost"
                    }
                  },
                  "required": [
                    "path",
                    "host"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/pgps</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/pgps</code></p>\n</div>\n\n<div style=\"background-color: #f8d7da; color: #721c24; text-align: center; border: 1px solid #f5c6cb; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has been deprecated. Please use the <a href=\"#tag/GNSS/operation/GetPredictedAssistanceData\">GNSS GetPredictionData endpoint</a> instead.</div>\n\nGenerates up to one week of gps predictions. The predictions are used by the nRF91 GPS modem\nto enable a faster time-to-first-fix (TTFF) and provide offline navigation when out of range of an LTE cell.\n\nReturns a link for easy download of the predictions file.\n\n__Basic Request__:\n```sh\ncurl -G $API_HOST/v1/location/pgps -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\"\n```\n__Custom Request__:\n```sh\ncurl -G $API_HOST/v1/location/pgps  -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\" -d \"predictionCount=42\" -d \"predictionIntervalMinutes=240\" -d \"startGpsDay=15131\" -d \"startGpsTimeOfDaySeconds=0\"\n```",
        "summary": "GetPredictedAssistanceData",
        "tags": [
          "Predicted GPS"
        ],
        "deprecated": true,
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "predictionCount",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PredictionCount"
            }
          },
          {
            "in": "query",
            "name": "predictionIntervalMinutes",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PredictionInterval"
            }
          },
          {
            "in": "query",
            "name": "startGpsDay",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/StartGpsDay"
            }
          },
          {
            "in": "query",
            "name": "startGpsTimeOfDaySeconds",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/StartGpsTime"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ]
      }
    },
    "/location/single-cell": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "get": {
        "operationId": "GetSingleCellLocation",
        "responses": {
          "200": {
            "description": "Contains file-chunk or JSON response, depending on format param",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SingleCellResponseBuffer"
                    },
                    {
                      "$ref": "#/components/schemas/CellResponse"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/single-cell</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/single-cell</code></p>\n</div>\n\n<div style=\"background-color: #f8d7da; color: #721c24; text-align: center; border: 1px solid #f5c6cb; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has been deprecated. Please use the <a href=\"#tag/Ground-Fix\">ground fix endpoint</a> instead.</div>\n\nGets the lat, lon, and uncertainty values based on the id of the LTE cell passed.\nReturns a binary payload or JSON, depending on the format argument. Binary by default. When returning binary, the content-type response header is \"application/octet-stream\".\n```sh\ncurl -G $API_HOST/v1/location/single-cell -d \"mcc=244\" -d \"mnc=91\" -d \"tac=4099\" -d \"eci=36078631\" -d \"format=json\" -H \"Authorization: Bearer $JWT\" -H \"Content-Type: application/json\"\n```",
        "summary": "GetSingleCellLocation",
        "tags": [
          "Single Cell"
        ],
        "deprecated": true,
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "mcc",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Mcc"
            }
          },
          {
            "in": "query",
            "name": "mnc",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Mnc"
            }
          },
          {
            "in": "query",
            "name": "tac",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Tac"
            }
          },
          {
            "in": "query",
            "name": "eci",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Eci"
            }
          },
          {
            "in": "query",
            "name": "rsrp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Rsrp"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SingleCellFormat"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ]
      }
    },
    "/location/wifi": {
      "servers": [
        {
          "url": "https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}",
          "description": "Cloud-to-cloud — authorize with an Organization Auth Token.",
          "variables": {
            "organizationSlug": {
              "default": "my-org",
              "description": "Your organization slug."
            },
            "projectSlug": {
              "default": "my-project",
              "description": "Your project slug."
            }
          }
        },
        {
          "url": "https://api.location.nrfcloud.com/v1",
          "description": "Device-to-cloud — authorize with a JSON Web Token."
        }
      ],
      "post": {
        "operationId": "GetLocationFromWifiNetworks",
        "responses": {
          "200": {
            "description": "Returns lat/lon coordinates and uncertainty for a device using nearby Wi-Fi networks",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WifiResponse"
                    }
                  ],
                  "nullable": true
                }
              }
            }
          }
        },
        "description": "<div class=\"nrf-note\">\n<p><b>Cloud-to-cloud — authorize with an Organization Auth Token.</b><br><code>https://api.location.nrfcloud.com/v1/organizations/{organizationSlug}/projects/{projectSlug}/location/wifi</code></p>\n<p><b>Device-to-cloud — authorize with a JSON Web Token.</b><br><code>https://api.location.nrfcloud.com/v1/location/wifi</code></p>\n</div>\n\n<div style=\"background-color: #fff3cd; color: #856404; text-align: center; border: 1px solid #ffeeba; border-radius: .25rem; padding: .75rem 1.25rem\">This endpoint has an alternative. See the <a href=\"#tag/Ground-Fix\">ground fix endpoint</a> for more details.</div>\nGet location based on nearby Wi-Fi networks. At least two access points with valid MAC addresses are required. An empty `accessPoints` array is treated the same as an omitted field.",
        "summary": "GetLocationFromWifiNetworks",
        "tags": [
          "Wi-Fi Location"
        ],
        "security": [
          {
            "Organization Auth Token": []
          },
          {
            "JSON Web Token": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "doReply",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/DoReplyFlag"
            }
          },
          {
            "in": "query",
            "name": "hiConf",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/HighConfidenceFlag"
            }
          },
          {
            "in": "header",
            "name": "x-custom-device-id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CustomDeviceId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WifiAccessPointsRequest"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "examples": {},
    "headers": {},
    "parameters": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {
      "TenantId": {
        "type": "string",
        "example": "a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9",
        "description": "The UUID of the team owning the device(s)",
        "pattern": "^[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}$"
      },
      "UUID": {
        "type": "string",
        "example": "bc631093-7f7c-4c1b-aa63-a68c759bcd5c",
        "description": "Universally unique identifier",
        "pattern": "^[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}$"
      },
      "Nominal_string.DeviceTag_": {
        "type": "string"
      },
      "DeviceTag": {
        "$ref": "#/components/schemas/Nominal_string.DeviceTag_",
        "pattern": "^[a-zA-Z0-9_.@:#-]+$"
      },
      "GPSLocationServices": {
        "type": "string",
        "enum": [
          "AGPS",
          "PGPS"
        ]
      },
      "GroundFixLocationServices": {
        "type": "string",
        "enum": [
          "SCELL",
          "MCELL",
          "WIFI"
        ]
      },
      "GeocodeLocationServices": {
        "type": "string",
        "enum": [
          "REVERSE_GEO"
        ],
        "nullable": false
      },
      "LocationServices": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/GPSLocationServices"
          },
          {
            "$ref": "#/components/schemas/GroundFixLocationServices"
          },
          {
            "$ref": "#/components/schemas/GeocodeLocationServices"
          }
        ]
      },
      "NonLocationServices": {
        "type": "string",
        "enum": [
          "Devices",
          "FOTA",
          "Messages",
          "MessageRouting"
        ]
      },
      "CommercialServices": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LocationServices"
          },
          {
            "$ref": "#/components/schemas/NonLocationServices"
          },
          {
            "$ref": "#/components/schemas/GeocodeLocationServices"
          }
        ]
      },
      "GroundFixLocationService": {
        "type": "string",
        "enum": [
          "GROUND_FIX"
        ],
        "nullable": false
      },
      "Pick_InvoiceLineItemNonOverage.Exclude_keyofInvoiceLineItemNonOverage.type__": {
        "properties": {
          "serviceId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommercialServices"
              },
              {
                "$ref": "#/components/schemas/GroundFixLocationService"
              },
              {
                "type": "string",
                "enum": [
                  "All Services",
                  "VAT"
                ]
              }
            ]
          },
          "serviceDescription": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "total": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "serviceId",
          "serviceDescription",
          "quantity",
          "price",
          "total"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_InvoiceLineItemNonOverage.type_": {
        "$ref": "#/components/schemas/Pick_InvoiceLineItemNonOverage.Exclude_keyofInvoiceLineItemNonOverage.type__"
      },
      "Pick_PlanTypes.Exclude_keyofPlanTypes.DEVELOPER__": {
        "properties": {
          "length": {
            "type": "number",
            "format": "double",
            "description": "Returns the length of a String object."
          }
        },
        "required": [
          "length"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_PlanTypes.DEVELOPER_": {
        "$ref": "#/components/schemas/Pick_PlanTypes.Exclude_keyofPlanTypes.DEVELOPER__"
      },
      "OverageC2CBase": {
        "properties": {
          "AGPS": {
            "type": "number",
            "format": "double"
          },
          "PGPS": {
            "type": "number",
            "format": "double"
          },
          "REVERSE_GEO": {
            "type": "number",
            "format": "double"
          },
          "GROUND_FIX": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object"
      },
      "C2COverages": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OverageC2CBase"
          },
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "C2C"
                ],
                "nullable": false
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "OverageD2CBase": {
        "properties": {
          "AGPS": {
            "type": "number",
            "format": "double"
          },
          "PGPS": {
            "type": "number",
            "format": "double"
          },
          "SCELL": {
            "type": "number",
            "format": "double"
          },
          "MCELL": {
            "type": "number",
            "format": "double"
          },
          "WIFI": {
            "type": "number",
            "format": "double"
          },
          "REVERSE_GEO": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object"
      },
      "D2COverages": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OverageD2CBase"
          },
          {
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "D2C"
                ],
                "nullable": false
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "Nominal_string.CurrencyCode_": {
        "type": "string"
      },
      "CurrencyCode": {
        "$ref": "#/components/schemas/Nominal_string.CurrencyCode_"
      },
      "PageLimit": {
        "type": "integer",
        "format": "int32",
        "default": "10",
        "description": "Maximum number of items you want returned in the response (<=100).",
        "minimum": 1,
        "maximum": 100
      },
      "PageNextToken": {
        "type": "string",
        "example": "4bb1f9ab35bd",
        "description": "If available in the initial response, use this token to retrieve the next page of items in the list.\nWhen supplying as a request parameter, use URL-encoding."
      },
      "FirmwareTypes": {
        "description": "Firmware types that can be specified in the device's shadow in reported.device.serviceInfo.fota_v2 and\nin its Elasticsearch document in the firmware.supports array.",
        "enum": [
          "APP",
          "MODEM",
          "BOOT",
          "SOFTDEVICE",
          "BOOTLOADER",
          "MDM_FULL",
          "SMP",
          "CUSTOM"
        ],
        "type": "string"
      },
      "PageSort": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ],
        "default": "desc",
        "example": "desc",
        "description": "Sorting order for the paginated results => desc (descending; default) or asc (ascending)."
      },
      "DeviceId": {
        "type": "string",
        "example": "nrf-1234567890123456789000",
        "description": "This is the canonical device id used in the device certificate, and as the MQTT client id.",
        "pattern": "^[a-zA-Z0-9:_-]{1,128}$"
      },
      "ULID": {
        "type": "string",
        "example": "01EZZJVDQJPWT7V4FWNVDHNMM5",
        "description": "Universally Unique Lexicographically Sortable Identifier (using Crockford's alphabet).",
        "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
      },
      "BulkOpsRequestEndpoint": {
        "enum": [
          "REGISTER_PUBLIC_KEYS",
          "REGISTER_CERTIFICATES",
          "ONBOARD_DEVICES"
        ],
        "type": "string"
      },
      "BulkOpsRequestStatus": {
        "enum": [
          "IN_PROGRESS",
          "FAILED",
          "SUCCEEDED"
        ],
        "type": "string"
      },
      "ISODateTimeString": {
        "type": "string",
        "example": "2020-06-25T21:05:12.830Z",
        "format": "date-time",
        "description": "HTML-encoded ISO-8601 date-time string denoting the start or end of a date range. If the string includes only a date, the time is the beginning of the day (00:00:00)."
      },
      "Pick_BulkOpsRequest.Exclude_keyofBulkOpsRequest.tenantId-or-metadata__": {
        "properties": {
          "bulkOpsRequestId": {
            "$ref": "#/components/schemas/ULID"
          },
          "endpoint": {
            "$ref": "#/components/schemas/BulkOpsRequestEndpoint"
          },
          "status": {
            "$ref": "#/components/schemas/BulkOpsRequestStatus"
          },
          "requestedAt": {
            "$ref": "#/components/schemas/ISODateTimeString"
          },
          "completedAt": {
            "$ref": "#/components/schemas/ISODateTimeString"
          }
        },
        "required": [
          "bulkOpsRequestId",
          "endpoint",
          "status",
          "requestedAt"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "BulkOpsRequestDetails": {
        "properties": {
          "bulkOpsRequestId": {
            "$ref": "#/components/schemas/ULID"
          },
          "endpoint": {
            "$ref": "#/components/schemas/BulkOpsRequestEndpoint"
          },
          "status": {
            "$ref": "#/components/schemas/BulkOpsRequestStatus"
          },
          "requestedAt": {
            "$ref": "#/components/schemas/ISODateTimeString"
          },
          "completedAt": {
            "$ref": "#/components/schemas/ISODateTimeString"
          },
          "uploadedDataUrl": {
            "type": "string",
            "description": "The URL at which you can retrieve the data you originally uploaded to an endpoint that supports bulk operations.",
            "example": "https://api.nrfcloud.com/v1/bulk-ops-assets/a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9/data-01EZZJVDQJPWT7V4FWNVDHNMM5.csv"
          },
          "errorSummaryUrl": {
            "type": "string",
            "description": "The URL at which you can retrieve a summary of errors and the row indices they occurred at for a failed bulk ops request job.",
            "example": "https://api.nrfcloud.com/v1/bulk-ops-assets/a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9/errors-01EZZJVDQJPWT7V4FWNVDHNMM5.json"
          }
        },
        "required": [
          "bulkOpsRequestId",
          "endpoint",
          "status",
          "requestedAt",
          "uploadedDataUrl"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_BulkOpsRequestDetails_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BulkOpsRequestDetails"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Nominal_string.OwnershipCode_": {
        "type": "string"
      },
      "OwnershipCode": {
        "$ref": "#/components/schemas/Nominal_string.OwnershipCode_",
        "description": "For Nordic products this is the PIN or HWID printed on the label. Otherwise, this is the ownership code you set when creating a device certificate.\nAll ownership codes are sanitized. Requires a min of 4 characters consisting only of numbers, letters, - or :.",
        "pattern": "^[a-zA-Z0-9-:]{4,}$"
      },
      "ThingType": {
        "type": "string",
        "description": "A custom string value to specify the type of thing (device) being provisioned on nRF Cloud.",
        "pattern": "/[a-zA-Z0-9_.,@\\/:#-]{0,799}/"
      },
      "RestApiPayloadContentTypeWithCsv": {
        "enum": [
          "text/plain;charset=UTF8",
          "text/plain;charset=ASCII",
          "text/plain",
          "application/octet-stream",
          "text/csv"
        ],
        "type": "string"
      },
      "OnboardDevicesPayload": {
        "type": "string"
      },
      "OnboardSingleDeviceArgs": {
        "title": "Certificate-based Onboarding",
        "properties": {
          "certificate": {
            "type": "string",
            "description": "X509 Certificate in PEM format."
          },
          "subType": {
            "$ref": "#/components/schemas/ThingType"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/DeviceTag"
            },
            "type": "array"
          },
          "supportedFirmwareTypes": {
            "items": {
              "$ref": "#/components/schemas/FirmwareTypes"
            },
            "type": "array",
            "description": "Firmware types supported by the device for FOTA."
          }
        },
        "required": [
          "certificate"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "RegisterPublicKeysPayload": {
        "type": "string"
      },
      "RegisterCertificatesPayload": {
        "type": "string"
      },
      "deviceTypes.Generic": {
        "enum": [
          "Generic"
        ],
        "type": "string"
      },
      "NonGatewayIPDeviceSubType": {
        "enum": [
          "jitp-generic",
          "jitp-nordic-hardware",
          "unknown"
        ],
        "type": "string"
      },
      "GenericDeviceState": {
        "properties": {
          "reported": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "connected": false,
              "sessionIdentifier": "ab6af4e7-32e8-4107-94d8-f096e776c077",
              "pairing": {
                "state": "paired",
                "topics": {
                  "d2c": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345",
                  "c2d": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345/c2d"
                }
              },
              "nrfcloud_mqtt_topic_prefix": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/",
              "device": {
                "networkInfo": {
                  "currentBand": 20,
                  "supportedBands": "(1,2,3,4,5,8,12,13,17,18,19,20,25,26,28,66)\r\n",
                  "areaCode": 3030,
                  "mccmnc": "22801",
                  "ipAddress": "10.1.10.106",
                  "ueMode": 2,
                  "cellID": 17513992,
                  "networkMode": "LTE-M GPS"
                },
                "simInfo": {
                  "uiccMode": 1,
                  "iccid": "89410119346707573424",
                  "imsi": "228017001757342"
                },
                "deviceInfo": {
                  "modemFirmware": "mfw_nrf9160_1.2.0",
                  "batteryVoltage": 5203,
                  "imei": "123456789012345",
                  "board": "nrf9160_pca10090",
                  "appVersion": "v1.2.0-406-gbc7ade8b14a1",
                  "appName": "asset_tracker"
                },
                "serviceInfo": {
                  "ui": [
                    "GPS",
                    "FLIP",
                    "TEMP",
                    "HUMID",
                    "AIR_PRESS",
                    "RSRP"
                  ],
                  "fota_v1": [
                    "APP",
                    "MODEM"
                  ]
                }
              },
              "config": {
                "GPS": {
                  "enable": false
                }
              }
            }
          },
          "desired": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "pairing": {
                "state": "paired",
                "topics": {
                  "d2c": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345",
                  "c2d": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345/c2d"
                }
              },
              "nrfcloud_mqtt_topic_prefix": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/"
            }
          },
          "delta": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "config": {
                "GPS": {
                  "enable": true
                }
              }
            }
          },
          "metadata": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "desired": {
                "pairing": {
                  "state": {
                    "timestamp": 1594295242
                  },
                  "topics": {
                    "d2c": {
                      "timestamp": 1594295242
                    },
                    "c2d": {
                      "timestamp": 1594295242
                    }
                  }
                },
                "nrfcloud_mqtt_topic_prefix": {
                  "timestamp": 1594295242
                }
              },
              "reported": {
                "connected": {
                  "timestamp": 1594395957
                },
                "sessionIdentifier": {
                  "timestamp": 1594395957
                },
                "pairing": {
                  "state": {
                    "timestamp": 1594395561
                  },
                  "topics": {
                    "d2c": {
                      "timestamp": 1594395561
                    },
                    "c2d": {
                      "timestamp": 1594395561
                    }
                  }
                },
                "nrfcloud_mqtt_topic_prefix": {
                  "timestamp": 1594395561
                },
                "device": {
                  "networkInfo": {
                    "currentBand": {
                      "timestamp": 1594395562
                    },
                    "supportedBands": {
                      "timestamp": 1594395562
                    },
                    "areaCode": {
                      "timestamp": 1594395562
                    },
                    "mccmnc": {
                      "timestamp": 1594395562
                    },
                    "ipAddress": {
                      "timestamp": 1594395562
                    },
                    "ueMode": {
                      "timestamp": 1594395562
                    },
                    "cellID": {
                      "timestamp": 1594395562
                    },
                    "networkMode": {
                      "timestamp": 1594395562
                    }
                  },
                  "simInfo": {
                    "uiccMode": {
                      "timestamp": 1594395562
                    },
                    "iccid": {
                      "timestamp": 1594395562
                    },
                    "imsi": {
                      "timestamp": 1594395562
                    }
                  },
                  "deviceInfo": {
                    "modemFirmware": {
                      "timestamp": 1594395562
                    },
                    "batteryVoltage": {
                      "timestamp": 1594395562
                    },
                    "imei": {
                      "timestamp": 1594395562
                    },
                    "board": {
                      "timestamp": 1594395562
                    },
                    "appVersion": {
                      "timestamp": 1594395562
                    },
                    "appName": {
                      "timestamp": 1594395562
                    }
                  },
                  "serviceInfo": {
                    "ui": [
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      }
                    ],
                    "fota_v1": [
                      {
                        "timestamp": 1594395562
                      },
                      {
                        "timestamp": 1594395562
                      }
                    ]
                  }
                },
                "config": {
                  "GPS": {
                    "enable": {
                      "timestamp": 1594295362
                    }
                  }
                }
              }
            }
          },
          "version": {
            "type": "number",
            "format": "double",
            "example": 8115
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "DeviceName": {
        "type": "string",
        "description": "Friendly device name. Can be used for searching and filtering devices.",
        "pattern": "^[a-zA-Z0-9.@:#-]{1,128}$",
        "example": "new-device-name"
      },
      "deviceTypes": {
        "enum": [
          "Generic"
        ],
        "type": "string"
      },
      "Nominal_string.Url_": {
        "type": "string"
      },
      "Url": {
        "$ref": "#/components/schemas/Nominal_string.Url_",
        "format": "url"
      },
      "DeviceDocMeta": {
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": 4.421
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "DeviceFirmwareArgs": {
        "properties": {
          "supports": {
            "items": {
              "type": "string",
              "enum": [
                "APP",
                "MODEM",
                "BOOT",
                "SOFTDEVICE",
                "BOOTLOADER",
                "MDM_FULL",
                "SMP",
                "CUSTOM"
              ]
            },
            "type": "array",
            "example": [
              "BOOT",
              "APP",
              "MODEM",
              "SOFTDEVICE"
            ]
          },
          "app": {
            "properties": {
              "version": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "boot": {
            "type": "string"
          },
          "modem": {
            "type": "string"
          },
          "smpDeviceAppVer": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "DeviceDocMetaArgs": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "GenericDevice": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/DeviceId",
            "example": "nrf-123456789012345"
          },
          "name": {
            "$ref": "#/components/schemas/DeviceName",
            "example": "WarehouseEastTemp1"
          },
          "image": {
            "$ref": "#/components/schemas/Url",
            "example": "https://device-images.nrfcloud.com/7c219c23-644e-4565-9fe7-6c56ab8bf949_nrf-123456789012345_a2ca62a47d.png"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/DeviceTag"
            },
            "type": "array",
            "example": [
              "warehouse-east",
              "temperature"
            ]
          },
          "tenantId": {
            "$ref": "#/components/schemas/TenantId",
            "example": "7c219c23-644e-4565-9fe7-6c56ab8bf949"
          },
          "subType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NonGatewayIPDeviceSubType"
              },
              {
                "type": "string"
              }
            ]
          },
          "firmware": {
            "$ref": "#/components/schemas/DeviceFirmwareArgs"
          },
          "$meta": {
            "$ref": "#/components/schemas/DeviceDocMeta"
          },
          "type": {
            "$ref": "#/components/schemas/deviceTypes.Generic"
          },
          "state": {
            "$ref": "#/components/schemas/GenericDeviceState"
          }
        },
        "required": [
          "id",
          "tenantId",
          "name",
          "type",
          "subType",
          "tags",
          "$meta"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Descriptors": {
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "properties": {
            "value": {
              "items": {
                "type": "number",
                "format": "double"
              },
              "type": "array"
            },
            "path": {
              "type": "string"
            },
            "uuid": {
              "type": "string"
            }
          },
          "required": [
            "value",
            "path",
            "uuid"
          ],
          "type": "object"
        }
      },
      "Characteristics": {
        "properties": {},
        "type": "object",
        "additionalProperties": {
          "properties": {
            "descriptors": {
              "$ref": "#/components/schemas/Descriptors"
            },
            "properties": {
              "properties": {
                "broadcast": {
                  "type": "boolean"
                },
                "authorizedSignedWrite": {
                  "type": "boolean"
                },
                "indicate": {
                  "type": "boolean"
                },
                "notify": {
                  "type": "boolean"
                },
                "write": {
                  "type": "boolean"
                },
                "writeWithoutResponse": {
                  "type": "boolean"
                },
                "read": {
                  "type": "boolean"
                }
              },
              "type": "object"
            },
            "value": {
              "items": {
                "type": "number",
                "format": "double"
              },
              "type": "array"
            },
            "handle": {
              "type": "number",
              "format": "double"
            },
            "path": {
              "type": "string"
            },
            "uuid": {
              "type": "string"
            }
          },
          "required": [
            "descriptors",
            "properties",
            "value",
            "path",
            "uuid"
          ],
          "type": "object"
        }
      },
      "Record_string.any-or-undefined_": {
        "properties": {},
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "AnyKeyedObject": {
        "$ref": "#/components/schemas/Record_string.any-or-undefined_",
        "description": "Keyed object with any value. Encapsulates any usage."
      },
      "DeviceShadow": {
        "properties": {
          "reported": {
            "$ref": "#/components/schemas/AnyKeyedObject",
            "example": {
              "connected": false,
              "sessionIdentifier": "8a00a643-4991-4174-a1c6-9511e18ba7cb",
              "genericInfo": {
                "versions": {
                  "library": "unknown",
                  "gateway": "2.1.0"
                },
                "platform": {
                  "name": "cordova",
                  "version": ""
                }
              },
              "stage": "prod",
              "desiredConnections": [
                {
                  "address": {
                    "address": "C22973F0-C1CA-496E-559C-7EE4EEF296E5",
                    "type": "randomStatic"
                  },
                  "id": "C22973F0-C1CA-496E-559C-7EE4EEF296E5",
                  "connectOptions": {
                    "security": {
                      "initiate": true
                    }
                  }
                }
              ],
              "name": "",
              "statusConnections": {
                "C22973F0-C1CA-496E-559C-7EE4EEF296E5": {
                  "id": "C22973F0-C1CA-496E-559C-7EE4EEF296E5",
                  "status": {
                    "connected": false,
                    "connecting": false
                  }
                }
              }
            }
          },
          "desired": {
            "$ref": "#/components/schemas/AnyKeyedObject",
            "example": {
              "stage": "prod",
              "desiredConnections": [
                {
                  "address": {
                    "address": "C22973F0-C1CA-496E-559C-7EE4EEF296E5",
                    "type": "randomStatic"
                  },
                  "id": "C22973F0-C1CA-496E-559C-7EE4EEF296E5",
                  "connectOptions": {
                    "security": {
                      "initiate": true
                    }
                  }
                }
              ]
            }
          },
          "delta": {
            "$ref": "#/components/schemas/AnyKeyedObject"
          },
          "metadata": {
            "$ref": "#/components/schemas/AnyKeyedObject",
            "example": {
              "desired": {
                "stage": {
                  "timestamp": 1594146861
                },
                "desiredConnections": [
                  {
                    "address": {
                      "address": {
                        "timestamp": 1594146996
                      },
                      "type": {
                        "timestamp": 1594146996
                      }
                    },
                    "id": {
                      "timestamp": 1594146996
                    },
                    "connectOptions": {
                      "security": {
                        "initiate": {
                          "timestamp": 1594146996
                        }
                      }
                    }
                  }
                ]
              },
              "reported": {
                "connected": {
                  "timestamp": 1594227217
                },
                "sessionIdentifier": {
                  "timestamp": 1594227217
                },
                "genericInfo": {
                  "versions": {
                    "library": {
                      "timestamp": 1594226746
                    },
                    "gateway": {
                      "timestamp": 1594226746
                    }
                  },
                  "platform": {
                    "name": {
                      "timestamp": 1594226746
                    },
                    "version": {
                      "timestamp": 1594226746
                    }
                  }
                },
                "stage": {
                  "timestamp": 1594226746
                },
                "desiredConnections": [
                  {
                    "address": {
                      "address": {
                        "timestamp": 1594146997
                      },
                      "type": {
                        "timestamp": 1594146997
                      }
                    },
                    "id": {
                      "timestamp": 1594146997
                    },
                    "connectOptions": {
                      "security": {
                        "initiate": {
                          "timestamp": 1594146997
                        }
                      }
                    }
                  }
                ],
                "name": {
                  "timestamp": 1594146997
                },
                "statusConnections": {
                  "C22973F0-C1CA-496E-559C-7EE4EEF296E5": {
                    "id": {
                      "timestamp": 1594226766
                    },
                    "status": {
                      "connected": {
                        "timestamp": 1594226766
                      },
                      "connecting": {
                        "timestamp": 1594226766
                      }
                    }
                  }
                }
              }
            }
          },
          "version": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Device": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/GenericDevice"
          }
        ]
      },
      "JSONataTransformedResponse": {
        "description": "Response body transformed by JSONata expression. For more info see https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/Tutorials/Transforms.html."
      },
      "PaginatedResult_Device-or-JSONataTransformedResponse_": {
        "properties": {
          "items": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Device"
                },
                {
                  "$ref": "#/components/schemas/JSONataTransformedResponse"
                }
              ]
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Nominal_string.FirmwareVersion_": {
        "type": "string"
      },
      "FirmwareVersion": {
        "$ref": "#/components/schemas/Nominal_string.FirmwareVersion_"
      },
      "PaginatedResult_DeviceTag-or-JSONataTransformedResponse_": {
        "properties": {
          "items": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DeviceTag"
                },
                {
                  "$ref": "#/components/schemas/JSONataTransformedResponse"
                }
              ]
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MqttTopic": {
        "type": "string",
        "example": "d/7e8f29fa-cb04-4351-a7c4-3917649d2d36/d2c/bulk",
        "description": "A string specifying an MQTT topic."
      },
      "Message": {
        "allOf": [
          {
            "$ref": "#/components/schemas/AnyKeyedObject"
          },
          {}
        ],
        "example": {
          "messageType": "DATA",
          "data": "2.8",
          "appId": "TEMP"
        },
        "description": "A JSON object containing a device message that conforms to the device-to-cloud application protocol defined [here](https://github.com/nRFCloud/application-protocols/tree/v1/schemas/deviceToCloud)."
      },
      "Base64EncodedBinaryData": {
        "type": "string",
        "example": {
          "messageType": "DATA",
          "data": "2.8",
          "appId": "TEMP"
        },
        "description": "Binary data encoded as a base64 string. This is intended for binary dictionary based logging data.\nFor more info [see here](https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/logging/index.html#dictionary-based_logging)."
      },
      "DeviceMessageInput": {
        "description": "Device message input",
        "properties": {
          "topic": {
            "$ref": "#/components/schemas/MqttTopic"
          },
          "message": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Message"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/Message"
                },
                "type": "array"
              },
              {
                "$ref": "#/components/schemas/Base64EncodedBinaryData"
              }
            ]
          }
        },
        "required": [
          "message"
        ],
        "type": "object",
        "additionalProperties": false,
        "example": {
          "topic": "d/7e8f29fa-cb04-4351-a7c4-3917649d2d36/d2c/bulk",
          "message": [
            {
              "temp": 59,
              "units": "F",
              "ts": 1631470795000
            },
            {
              "temp": 54,
              "units": "F",
              "ts": 1631557195000
            }
          ]
        }
      },
      "DeviceStateInput": {
        "properties": {
          "reported": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "device": {
                "serviceInfo": {
                  "fota_v1": [
                    "APP",
                    "MODEM"
                  ]
                }
              }
            }
          },
          "desired": {
            "properties": {},
            "additionalProperties": {},
            "type": "object",
            "example": {
              "someField1": {
                "someField2": "someValue2"
              }
            }
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "RestApiPayload": {
        "type": "string",
        "maxLength": 1333333
      },
      "RestApiPayloadContentTypeWithZip": {
        "enum": [
          "text/plain;charset=UTF8",
          "text/plain;charset=ASCII",
          "text/plain",
          "application/octet-stream",
          "application/zip"
        ],
        "type": "string"
      },
      "BundleId": {
        "type": "string",
        "description": "Unique bundle identifier",
        "pattern": "^(APP|MODEM|BOOT|SOFTDEVICE|BOOTLOADER|MDM_FULL|SMP|CUSTOM)\\*[0-9a-zA-Z]{8}\\*.*$"
      },
      "Firmware": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "version": {
            "$ref": "#/components/schemas/FirmwareVersion"
          },
          "type": {
            "$ref": "#/components/schemas/FirmwareTypes"
          },
          "bundleId": {
            "$ref": "#/components/schemas/BundleId"
          },
          "filenames": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "size": {
            "type": "number",
            "format": "double"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "version",
          "type",
          "bundleId",
          "filenames",
          "size"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_Firmware_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Firmware"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "FOTAJobExecutionState": {
        "properties": {
          "deviceId": {
            "$ref": "#/components/schemas/DeviceId"
          },
          "status": {
            "type": "string"
          },
          "statusDetail": {
            "type": "string"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "deviceId",
          "status"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_FOTAJobExecutionState_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FOTAJobExecutionState"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "JobId": {
        "$ref": "#/components/schemas/UUID"
      },
      "FotaV2JobExecutionEvents": {
        "type": "string",
        "enum": [
          "QUEUED",
          "IN_PROGRESS",
          "FAILED",
          "SUCCEEDED",
          "TIMED_OUT",
          "CANCELLED",
          "REJECTED",
          "DOWNLOADING"
        ]
      },
      "CreateJobInputTags": {
        "properties": {
          "bundleId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BundleId"
              },
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "A unique id created by the server when the firmware was uploaded (concatenation of firmware type, random string, and firmware version)."
          },
          "autoApply": {
            "type": "boolean",
            "description": "If set to false the job will not be applied immediately, but instead will be left in the \"CREATED\" status.\nThe job can later be applied using POST /fota-jobs/{jobId}/apply",
            "example": true,
            "default": "true"
          },
          "name": {
            "type": "string",
            "description": "Friendly name for this job",
            "maxLength": 64
          },
          "description": {
            "type": "string",
            "description": "Short description for this job",
            "maxLength": 1024
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/DeviceTag"
            },
            "type": "array",
            "description": "A list of tags to apply the device to",
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "bundleId",
          "tags"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateJobInputBase": {
        "properties": {
          "bundleId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BundleId"
              },
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "A unique id created by the server when the firmware was uploaded (concatenation of firmware type, random string, and firmware version)."
          },
          "autoApply": {
            "type": "boolean",
            "description": "If set to false the job will not be applied immediately, but instead will be left in the \"CREATED\" status.\nThe job can later be applied using POST /fota-jobs/{jobId}/apply",
            "example": true,
            "default": "true"
          },
          "name": {
            "type": "string",
            "description": "Friendly name for this job",
            "maxLength": 64
          },
          "description": {
            "type": "string",
            "description": "Short description for this job",
            "maxLength": 1024
          }
        },
        "required": [
          "bundleId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateJobInputDeviceIds": {
        "properties": {
          "bundleId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BundleId"
              },
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "A unique id created by the server when the firmware was uploaded (concatenation of firmware type, random string, and firmware version)."
          },
          "autoApply": {
            "type": "boolean",
            "description": "If set to false the job will not be applied immediately, but instead will be left in the \"CREATED\" status.\nThe job can later be applied using POST /fota-jobs/{jobId}/apply",
            "example": true,
            "default": "true"
          },
          "name": {
            "type": "string",
            "description": "Friendly name for this job",
            "maxLength": 64
          },
          "description": {
            "type": "string",
            "description": "Short description for this job",
            "maxLength": 1024
          },
          "deviceIds": {
            "items": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "type": "array",
            "description": "A list of device identifiers assigned to this job.",
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "bundleId",
          "deviceIds"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateJobInputDeviceIdentifiers": {
        "properties": {
          "bundleId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BundleId"
              },
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "A unique id created by the server when the firmware was uploaded (concatenation of firmware type, random string, and firmware version)."
          },
          "autoApply": {
            "type": "boolean",
            "description": "If set to false the job will not be applied immediately, but instead will be left in the \"CREATED\" status.\nThe job can later be applied using POST /fota-jobs/{jobId}/apply",
            "example": true,
            "default": "true"
          },
          "name": {
            "type": "string",
            "description": "Friendly name for this job",
            "maxLength": 64
          },
          "description": {
            "type": "string",
            "description": "Short description for this job",
            "maxLength": 1024
          },
          "deviceIdentifiers": {
            "items": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "type": "array",
            "description": "A list of device identifiers assigned to this job.",
            "minItems": 1,
            "maxItems": 100,
            "deprecated": true
          }
        },
        "required": [
          "bundleId",
          "deviceIdentifiers"
        ],
        "type": "object",
        "additionalProperties": false,
        "deprecated": true
      },
      "CreateJobInputIdOrIdentifier": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CreateJobInputDeviceIds"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputDeviceIdentifiers"
          }
        ]
      },
      "CreateJobInputTagsAndDeviceIds": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreateJobInputBase"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputTags"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputIdOrIdentifier"
          }
        ]
      },
      "JobSchedule": {
        "properties": {
          "startJobAtEpochMs": {
            "type": "number",
            "format": "double",
            "description": "Determine the date when the job should automatically start.\nNumber of milliseconds for this date since the UNIX epoch."
          },
          "lockTargetListAtEpochMs": {
            "type": "number",
            "format": "double",
            "description": "Determine the date in which the target list should automatically be set to LOCKED.\nNumber of milliseconds for this date since the UNIX epoch."
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CreateJobInputCriteria": {
        "properties": {
          "bundleId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BundleId"
              },
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "A unique id created by the server when the firmware was uploaded (concatenation of firmware type, random string, and firmware version)."
          },
          "autoApply": {
            "type": "boolean",
            "description": "If set to false the job will not be applied immediately, but instead will be left in the \"CREATED\" status.\nThe job can later be applied using POST /fota-jobs/{jobId}/apply",
            "example": true,
            "default": "true"
          },
          "name": {
            "type": "string",
            "description": "Friendly name for this job",
            "maxLength": 64
          },
          "description": {
            "type": "string",
            "description": "Short description for this job",
            "maxLength": 1024
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/DeviceTag"
            },
            "type": "array",
            "description": "A list of valid tags in which a device must contain one of for it to be eligible for this job.",
            "minItems": 0,
            "maxItems": 100
          },
          "deviceIds": {
            "items": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "type": "array",
            "description": "List of valid device identifiers for this job.",
            "minItems": 0,
            "maxItems": 100
          },
          "firmwareType": {
            "type": "string",
            "description": "Currently not supported.\nFirmware type a device must support for it to be eligible for this job.",
            "pattern": "^(APP|BOOT|MODEM)$"
          },
          "firmwareVersions": {
            "items": {
              "$ref": "#/components/schemas/FirmwareVersion"
            },
            "type": "array",
            "description": "Currently not supported.\nA list of firmware versions for the given firmware type that a device must have for it to be eligible for this job.",
            "minItems": 0,
            "maxItems": 5
          },
          "deviceIdentifiers": {
            "items": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "type": "array",
            "description": "A list of device identifiers assigned to this job.\nDeprecated. Use deviceIds instead.",
            "minItems": 0,
            "maxItems": 100,
            "deprecated": true
          },
          "schedule": {
            "$ref": "#/components/schemas/JobSchedule",
            "description": "Currently not supported.\nScheduled events for a job."
          },
          "targetListType": {
            "type": "string",
            "description": "Currently not supported.\nDetermine whether a target list is LOCKED or UNLOCKED.\nAn UNLOCKED target list allows devices that are newly eligible for the job (based on target criteria) to receive an execution.\nA LOCKED target prevents devices that are newly eligible to receive an execution.",
            "pattern": "^LOCKED|UNLOCKED$"
          }
        },
        "required": [
          "bundleId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CreateJobInput": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CreateJobInputTags"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputTagsAndDeviceIds"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputIdOrIdentifier"
          },
          {
            "$ref": "#/components/schemas/CreateJobInputCriteria"
          }
        ]
      },
      "FotaV2JobTargetModel": {
        "properties": {
          "deviceIds": {
            "items": {
              "$ref": "#/components/schemas/DeviceId"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/DeviceTag"
            },
            "type": "array"
          }
        },
        "required": [
          "deviceIds",
          "tags"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "FotaV2JobEvents": {
        "type": "string",
        "enum": [
          "CREATED",
          "IN_PROGRESS",
          "CANCELLED",
          "DELETION_IN_PROGRESS",
          "COMPLETED"
        ]
      },
      "FOTAV2Job": {
        "properties": {
          "jobId": {
            "$ref": "#/components/schemas/JobId"
          },
          "target": {
            "$ref": "#/components/schemas/FotaV2JobTargetModel"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/FotaV2JobEvents"
          },
          "statusDetail": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "executionStats": {
            "properties": {
              "completedExecutions": {
                "type": "number",
                "format": "double"
              },
              "executions": {
                "type": "number",
                "format": "double"
              },
              "devices": {
                "type": "number",
                "format": "double"
              },
              "timedOut": {
                "type": "number",
                "format": "double"
              },
              "removed": {
                "type": "number",
                "format": "double"
              },
              "downloading": {
                "type": "number",
                "format": "double"
              },
              "inProgress": {
                "type": "number",
                "format": "double"
              },
              "queued": {
                "type": "number",
                "format": "double"
              },
              "rejected": {
                "type": "number",
                "format": "double"
              },
              "failed": {
                "type": "number",
                "format": "double"
              },
              "succeeded": {
                "type": "number",
                "format": "double"
              },
              "cancelled": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "completedExecutions",
              "executions",
              "devices",
              "timedOut",
              "removed",
              "downloading",
              "inProgress",
              "queued",
              "rejected",
              "failed",
              "succeeded",
              "cancelled"
            ],
            "type": "object"
          },
          "firmware": {
            "properties": {
              "bundleId": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/BundleId"
                  },
                  {
                    "$ref": "#/components/schemas/UUID"
                  }
                ]
              },
              "host": {
                "type": "string"
              },
              "fileSize": {
                "type": "number",
                "format": "double"
              },
              "firmwareType": {
                "$ref": "#/components/schemas/FirmwareTypes"
              },
              "version": {
                "$ref": "#/components/schemas/FirmwareVersion"
              },
              "uris": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "bundleId",
              "host",
              "fileSize",
              "firmwareType",
              "version",
              "uris"
            ],
            "type": "object"
          }
        },
        "required": [
          "jobId",
          "target",
          "status",
          "executionStats",
          "firmware"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "TargetListType": {
        "enum": [
          "LOCKED",
          "UNLOCKED"
        ],
        "type": "string"
      },
      "FotaJobV2Plus": {
        "description": "Elivagar FOTA Job definition for integration with device-job-service",
        "properties": {
          "jobId": {
            "$ref": "#/components/schemas/JobId"
          },
          "target": {
            "properties": {
              "firmwareVersions": {
                "items": {
                  "$ref": "#/components/schemas/FirmwareVersion"
                },
                "type": "array"
              },
              "firmwareType": {
                "$ref": "#/components/schemas/FirmwareTypes"
              },
              "tags": {
                "items": {
                  "$ref": "#/components/schemas/DeviceTag"
                },
                "type": "array"
              },
              "deviceIds": {
                "items": {
                  "$ref": "#/components/schemas/DeviceId"
                },
                "type": "array"
              }
            },
            "required": [
              "tags",
              "deviceIds"
            ],
            "type": "object"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/FotaV2JobEvents"
          },
          "statusDetail": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "executionStats": {
            "properties": {
              "completedExecutions": {
                "type": "number",
                "format": "double"
              },
              "executions": {
                "type": "number",
                "format": "double"
              },
              "devices": {
                "type": "number",
                "format": "double"
              },
              "timedOut": {
                "type": "number",
                "format": "double"
              },
              "removed": {
                "type": "number",
                "format": "double"
              },
              "downloading": {
                "type": "number",
                "format": "double"
              },
              "inProgress": {
                "type": "number",
                "format": "double"
              },
              "queued": {
                "type": "number",
                "format": "double"
              },
              "rejected": {
                "type": "number",
                "format": "double"
              },
              "failed": {
                "type": "number",
                "format": "double"
              },
              "succeeded": {
                "type": "number",
                "format": "double"
              },
              "cancelled": {
                "type": "number",
                "format": "double"
              }
            },
            "required": [
              "completedExecutions",
              "executions",
              "devices",
              "timedOut",
              "removed",
              "downloading",
              "inProgress",
              "queued",
              "rejected",
              "failed",
              "succeeded",
              "cancelled"
            ],
            "type": "object"
          },
          "firmware": {
            "properties": {
              "bundleId": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/BundleId"
                  },
                  {
                    "$ref": "#/components/schemas/UUID"
                  }
                ]
              },
              "host": {
                "type": "string"
              },
              "fileSize": {
                "type": "number",
                "format": "double"
              },
              "firmwareType": {
                "$ref": "#/components/schemas/FirmwareTypes"
              },
              "version": {
                "$ref": "#/components/schemas/FirmwareVersion"
              },
              "uris": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "bundleId",
              "host",
              "fileSize",
              "firmwareType",
              "version",
              "uris"
            ],
            "type": "object"
          },
          "schedule": {
            "$ref": "#/components/schemas/JobSchedule"
          },
          "targetListType": {
            "$ref": "#/components/schemas/TargetListType"
          }
        },
        "required": [
          "jobId",
          "target",
          "status",
          "executionStats",
          "firmware"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_FOTAV2Job-or-FotaJobV2Plus_": {
        "properties": {
          "items": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FOTAV2Job"
                },
                {
                  "$ref": "#/components/schemas/FotaJobV2Plus"
                }
              ]
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UpdateJobInput": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "targetListType": {
            "$ref": "#/components/schemas/TargetListType"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "FotaV2JobDocumentModel": {
        "properties": {
          "firmwareType": {
            "$ref": "#/components/schemas/FirmwareTypes"
          },
          "fileSize": {
            "type": "number",
            "format": "double",
            "example": 512
          },
          "host": {
            "type": "string",
            "example": "firmware.nrfcloud.com"
          },
          "path": {
            "type": "string",
            "example": "b67217f3-c246-4c7c-91b0-214579ce10d0/APP*c52c99d3*v1.3.0-280-g485445b6a869/AT_fast_blink.bin"
          },
          "version": {
            "$ref": "#/components/schemas/FirmwareVersion",
            "example": "v1.3.0-280-g485445b6a869"
          },
          "bundleId": {
            "$ref": "#/components/schemas/BundleId"
          }
        },
        "required": [
          "firmwareType",
          "fileSize",
          "host",
          "path",
          "version",
          "bundleId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_FotaV2JobExecutionModel.Exclude_keyofFotaV2JobExecutionModel.createdAt-or-lastUpdatedAt-or-deviceId__": {
        "properties": {
          "tenantId": {
            "$ref": "#/components/schemas/TenantId"
          },
          "status": {
            "$ref": "#/components/schemas/FotaV2JobExecutionEvents"
          },
          "executionId": {
            "$ref": "#/components/schemas/UUID"
          },
          "jobId": {
            "$ref": "#/components/schemas/JobId"
          },
          "statusDetail": {
            "type": "string"
          },
          "jobDocument": {
            "$ref": "#/components/schemas/FotaV2JobDocumentModel"
          }
        },
        "required": [
          "tenantId",
          "status",
          "executionId",
          "jobId",
          "jobDocument"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "FOTAJobExecution": {
        "properties": {
          "tenantId": {
            "$ref": "#/components/schemas/TenantId"
          },
          "status": {
            "$ref": "#/components/schemas/FotaV2JobExecutionEvents"
          },
          "executionId": {
            "$ref": "#/components/schemas/UUID"
          },
          "jobId": {
            "$ref": "#/components/schemas/JobId"
          },
          "statusDetail": {
            "type": "string"
          },
          "jobDocument": {
            "$ref": "#/components/schemas/FotaV2JobDocumentModel"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "deviceId": {
            "$ref": "#/components/schemas/DeviceId"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "tenantId",
          "status",
          "executionId",
          "jobId",
          "jobDocument",
          "createdAt",
          "deviceId",
          "lastUpdatedAt"
        ],
        "type": "object",
        "additionalProperties": false,
        "example": {
          "status": "SUCCEEDED",
          "deviceId": "nrfsim-453330795897806100000",
          "createdAt": "2020-12-09T18:34:13.472Z",
          "executionId": "4d50a3ba-9573-4ec9-b362-02e2bde5aaee",
          "jobDocument": {
            "path": "3701edba-5bd5-4fcf-a0d1-769457a8f409/APP*c52c99d3*v1.3.0-280-g485445b6a869/AT_fast_blink.bin",
            "host": "firmware.nrfcloud.com",
            "firmwareType": "APP",
            "fileSize": 253640,
            "version": "v1.3.0-280-g485445b6a869"
          },
          "jobId": "f539350f-7784-470c-b0cf-c669147b0c54",
          "lastUpdatedAt": "2020-12-09T18:34:18.731Z",
          "tenantId": "3701edba-5bd5-4fcf-a0d1-769457a8f409",
          "statusDetail": "Job Completed"
        }
      },
      "PaginatedResult_FOTAJobExecution_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FOTAJobExecution"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Tagged_BundleId_": {
        "type": "string",
        "enum": [
          "BundleId"
        ],
        "nullable": false
      },
      "DeviceMessage": {
        "properties": {
          "tenantId": {
            "$ref": "#/components/schemas/TenantId",
            "example": "a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9"
          },
          "topic": {
            "$ref": "#/components/schemas/MqttTopic",
            "example": "prod/a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9/nrf-123456/m/d/stuff"
          },
          "deviceId": {
            "$ref": "#/components/schemas/DeviceId",
            "example": "nrf-123456789013456"
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2020-06-25T21:05:12.830Z"
          },
          "message": {
            "$ref": "#/components/schemas/AnyKeyedObject",
            "example": {
              "temp": 59,
              "units": "F",
              "ts": 1631557195000
            }
          }
        },
        "required": [
          "tenantId",
          "topic",
          "deviceId",
          "receivedAt",
          "message"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_DeviceMessage_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeviceMessage"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MessageAppId": {
        "type": "string",
        "example": "TEMP",
        "maxLength": 64
      },
      "AlertStatus": {
        "type": "string",
        "enum": [
          "ACTIVE",
          "ARCHIVED"
        ],
        "description": "ACTIVE: The alert is active and has not been resolved.\nARCHIVED: The alert has been resolved and is no longer active."
      },
      "DeviceAlert": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID",
            "description": "The unique identifier for the alert."
          },
          "deviceId": {
            "$ref": "#/components/schemas/DeviceId",
            "description": "The unique identifier for the device that the alert was triggered on."
          },
          "createdAt": {
            "$ref": "#/components/schemas/ISODateTimeString",
            "description": "The time at which the alert was triggered on the device.\nThis is equivalent to the `ts` property of the original message."
          },
          "receivedAt": {
            "$ref": "#/components/schemas/ISODateTimeString",
            "description": "The time that the alert was received by the system."
          },
          "statusChangedAt": {
            "$ref": "#/components/schemas/ISODateTimeString",
            "description": "The time at which the alert's status was changed."
          },
          "statusChangedBy": {
            "$ref": "#/components/schemas/UUID",
            "description": "The user that last changed the status of the alert."
          },
          "status": {
            "$ref": "#/components/schemas/AlertStatus",
            "description": "The current status of the alert."
          },
          "originalMessage": {
            "additionalProperties": false,
            "type": "object",
            "description": "The original message sent from the device that triggered the alert."
          }
        },
        "required": [
          "id",
          "deviceId",
          "receivedAt",
          "status",
          "originalMessage"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_DeviceAlert_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeviceAlert"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ArchivedAlert": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeviceAlert"
          },
          {
            "properties": {
              "statusChangedAt": {
                "$ref": "#/components/schemas/ISODateTimeString"
              },
              "statusChangedBy": {
                "$ref": "#/components/schemas/UUID"
              },
              "status": {
                "type": "string",
                "enum": [
                  "ARCHIVED"
                ],
                "nullable": false
              }
            },
            "required": [
              "statusChangedAt",
              "statusChangedBy",
              "status"
            ],
            "type": "object"
          }
        ]
      },
      "ActiveAlert": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DeviceAlert"
          },
          {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "ACTIVE"
                ],
                "nullable": false
              }
            },
            "required": [
              "status"
            ],
            "type": "object"
          }
        ]
      },
      "AssistanceResponseBuffer": {
        "type": "string",
        "format": "byte",
        "example": "<Buffer>",
        "description": "Chunk of the file according to the request Range header."
      },
      "RequestType": {
        "description": "Type of data to be returned. Deprecated because the requestType is inferred from the request data.",
        "enum": [
          "rtLocation",
          "rtAssistance",
          "custom"
        ],
        "type": "string"
      },
      "NrfGpsMessageType": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "number"
      },
      "Mcc": {
        "type": "integer",
        "format": "int32",
        "minimum": 200,
        "maximum": 999,
        "example": 310,
        "description": "Mobile Country Code. As defined in <a href=\"https://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.212B-2018-PDF-E.pdf\" target=\"_blank\">ITU-T E.212</a>."
      },
      "Mnc": {
        "anyOf": [
          {
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 999
          },
          {
            "type": "string",
            "pattern": "^\\d{1,3}$"
          }
        ],
        "example": 120,
        "description": "Mobile Network Code. A number or string: 120 | 1 | \"001\" | \"01\" | \"000\". As defined in <a href=\"https://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.212B-2018-PDF-E.pdf\" target=\"_blank\">ITU-T E.212</a>."
      },
      "Tac": {
        "type": "integer",
        "format": "int32",
        "example": 13601,
        "description": "Tracking Area Code (TAC). Identifies a group of LTE cells in a certain region (Tracking Area). See <a href=\"https://www.etsi.org/deliver/etsi_ts/123000_123099/123003/17.09.00_60/ts_123003v170900p.pdf\" target=\"_blank\">ETSI TS 123 003, section 19.4.2.3</a> for more details."
      },
      "Eci": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 268435455,
        "example": 167899669,
        "description": "E-UTRA Cell Identifier (ECI), 28 bits (20 bits eNodeB and 8 bits Cell ID). Calculated using \"(eNodeB-ID * 256) + Sector-ID\". Range 0 .. 268435455. See <a href=\"https://www.etsi.org/deliver/etsi_ts/123000_123099/123003/17.09.00_60/ts_123003v170900p.pdf\" target=\"_blank\">ETSI TS 123 003, section 19.6</a> for more details."
      },
      "Rsrp": {
        "type": "number",
        "format": "double",
        "example": -90,
        "description": "Reference Signal Received Power. Measured in dBm. See <a href=\"https://www.rfwireless-world.com/Terminology/LTE-RSRP-vs-RSRQ.html\" target=\"_blank\">this page</a> for more details. Range -157..-44"
      },
      "FilteredEphemerisFlag": {
        "type": "boolean",
        "example": true,
        "description": "Send this flag if you want to receive ephemeris for only satellites in view.\nnRF Cloud will return ephemeris for up to 16 satellites. Cell data\n(eci, mcc, mnc, tac) is required. Defaults to false."
      },
      "SatelliteMaskAngle": {
        "type": "number",
        "format": "double",
        "example": 5,
        "description": "Filtered ephemeris mask angle. Only works in conjunction with the filtered\nflag. Controls the mask angle for which the satellites are filtered. Range 0..90\nDefaults to 5"
      },
      "CustomDeviceId": {
        "type": "string",
        "example": "my-device-12345",
        "pattern": "^[a-zA-Z0-9:_-]{1,128}$",
        "description": "User-defined device ID, used to identify requests when using\na cloud-to-cloud integration.\nIgnored if using a device token."
      },
      "AssistanceBuffer": {
        "properties": {},
        "type": "object",
        "additionalProperties": false
      },
      "MacAddress": {
        "type": "string",
        "example": "FE:1E:41:2D:9E:53",
        "description": "String comprised of 6 hexadecimal pairs, separated by colons or dashes. Both locally and universally administered addresses are accepted. See <a href=\"https://docs.nrfcloud.com/docs/platform/location-services#wi-fi-request-returns-mac-address--is-a-local-mac-address\" target=\"_blank\">this help page</a> for details."
      },
      "Latitude": {
        "type": "number",
        "format": "double",
        "example": 45.524098,
        "description": "WGS 84 geodetic grid line, north to south."
      },
      "Longitude": {
        "type": "number",
        "format": "double",
        "example": -122.688408,
        "description": "WGS 84 geodetic grid line, east to west."
      },
      "IsoDateTimeString": {
        "type": "string",
        "example": "1993-12-25T21:05:12.830Z"
      },
      "LocationServiceType.MCELL": {
        "enum": [
          "MCELL"
        ],
        "type": "string"
      },
      "LocationServiceType.SCELL": {
        "enum": [
          "SCELL"
        ],
        "type": "string"
      },
      "CellServiceType": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LocationServiceType.MCELL"
          },
          {
            "$ref": "#/components/schemas/LocationServiceType.SCELL"
          }
        ]
      },
      "Uncertainty": {
        "type": "number",
        "format": "double",
        "example": 300.5,
        "description": "Radius of the uncertainty circle around the location in meters. Also known as Horizontal Positioning Error (HPE)."
      },
      "PositionResponse": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CellResponseWithFulfillment": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          },
          "fulfilledWith": {
            "$ref": "#/components/schemas/CellServiceType"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty",
          "fulfilledWith"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pci": {
        "type": "integer",
        "format": "int32",
        "example": 143,
        "description": "Physical Cell Identity (PCI). Used in the physical layer of E-UTRA systems to identify a cell. Range: 0..503"
      },
      "Earfcn": {
        "type": "integer",
        "format": "int32",
        "example": 41490,
        "description": "Evolved Absolute Radio Frequency Channel (E-ARFCN). Range: 0..262143. See <a href=\"https://www.etsi.org/deliver/etsi_ts/136100_136199/136106/17.00.00_60/ts_136106v170000p.pdf\" target=\"_blank\">ETSI TS 136 106, section 5.7.3</a> for more details."
      },
      "Lac": {
        "type": "integer",
        "format": "int32",
        "minimum": 1,
        "maximum": 65535,
        "example": 5126,
        "description": "Location Area Code (LAC). Identifies a group of cells within a location area. Range: 1..65535."
      },
      "GsmCellId": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 65535,
        "example": 16504,
        "description": "GSM Cell Identity (CID), 16 bits. Range: 0..65535."
      },
      "GsmArfcn": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 1023,
        "example": 82,
        "description": "Absolute Radio Frequency Channel Number of the neighbor cell BCCH carrier (GSM). Range: 0..1023."
      },
      "Bsic": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 63,
        "example": 6,
        "description": "Base Station Identity Code (BSIC) of a GSM neighbor cell. Range: 0..63."
      },
      "Rssi": {
        "type": "number",
        "format": "double",
        "example": -75,
        "description": "Received Signal Strength Indicator for a cell. Measured in dBm. Typical range -110..-25."
      },
      "WcdmaCid": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 268435455,
        "example": 16504,
        "description": "WCDMA/UTRAN Cell Identity (UC-Id), up to 28 bits. Range: 0..268435455."
      },
      "Psc": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 511,
        "example": 123,
        "description": "Primary Scrambling Code (PSC) of a WCDMA neighbor cell. Range: 0..511."
      },
      "Uarfcn": {
        "type": "integer",
        "format": "int32",
        "minimum": 0,
        "maximum": 16383,
        "example": 10788,
        "description": "UTRA Absolute Radio Frequency Channel Number (downlink) of a WCDMA neighbor cell. Range: 0..16383."
      },
      "Rscp": {
        "type": "number",
        "format": "double",
        "example": -95,
        "description": "Received Signal Code Power (RSCP) of a WCDMA neighbor cell. Measured in dBm. Typical range -120..-25."
      },
      "TimingAdvance": {
        "type": "number",
        "format": "double",
        "example": 20000,
        "description": "The length of time a signal takes to reach the base station from a mobile phone (half of rtt=round trip time). The units are symbols (Ts) as specified in 3GPP TS 36.211 (LTE). The expected resolution for nRF Cloud API is 1 Ts. Range 0..20512."
      },
      "TimeDiff": {
        "type": "number",
        "format": "double",
        "example": 300,
        "description": "Milliseconds that the neighbor cell was observed after the serving cell was observed. Improves accuracy for devices in motion."
      },
      "Rsrq": {
        "type": "number",
        "format": "double",
        "example": -8,
        "description": "Reference Signal Received Quality. Measured in dB. See <a href=\"https://www.rfwireless-world.com/Terminology/LTE-RSRP-vs-RSRQ.html\" target=\"_blank\">this page</a> for more details. Range -34.5..3.5"
      },
      "LteNeighborMeasurement": {
        "description": "Neighbor cell information. Can increase location accuracy when included in request.",
        "properties": {
          "rsrp": {
            "$ref": "#/components/schemas/Rsrp"
          },
          "rsrq": {
            "$ref": "#/components/schemas/Rsrq"
          },
          "earfcn": {
            "$ref": "#/components/schemas/Earfcn"
          },
          "pci": {
            "$ref": "#/components/schemas/Pci"
          },
          "eci": {
            "$ref": "#/components/schemas/Eci"
          },
          "timeDiff": {
            "$ref": "#/components/schemas/TimeDiff"
          }
        },
        "required": [
          "earfcn",
          "pci"
        ],
        "type": "object"
      },
      "LteCell": {
        "description": "LTE cell information. Use the 'nmr' property to send neighbor cell measurements for increased accuracy.",
        "properties": {
          "rsrp": {
            "$ref": "#/components/schemas/Rsrp"
          },
          "rsrq": {
            "$ref": "#/components/schemas/Rsrq"
          },
          "mcc": {
            "$ref": "#/components/schemas/Mcc"
          },
          "mnc": {
            "$ref": "#/components/schemas/Mnc"
          },
          "eci": {
            "$ref": "#/components/schemas/Eci"
          },
          "tac": {
            "$ref": "#/components/schemas/Tac"
          },
          "pci": {
            "$ref": "#/components/schemas/Pci"
          },
          "earfcn": {
            "$ref": "#/components/schemas/Earfcn"
          },
          "adv": {
            "$ref": "#/components/schemas/TimingAdvance"
          },
          "nmr": {
            "items": {
              "$ref": "#/components/schemas/LteNeighborMeasurement"
            },
            "type": "array"
          }
        },
        "required": [
          "mcc",
          "mnc",
          "eci",
          "tac"
        ],
        "type": "object"
      },
      "LteCatMCell": {
        "$ref": "#/components/schemas/LteCell"
      },
      "NbIoTCell": {
        "$ref": "#/components/schemas/LteCell"
      },
      "GsmNeighborMeasurement": {
        "description": "GSM neighbor cell information. Can increase location accuracy when included in request. Neighbor measurements are only used with vendors that support GSM neighbors.",
        "properties": {
          "baseStationId": {
            "$ref": "#/components/schemas/Bsic"
          },
          "arfcn": {
            "$ref": "#/components/schemas/GsmArfcn"
          },
          "rssi": {
            "$ref": "#/components/schemas/Rssi"
          }
        },
        "required": [
          "baseStationId",
          "arfcn"
        ],
        "type": "object"
      },
      "GsmCell": {
        "description": "GSM cell information. Use the 'nmr' property to send neighbor cell measurements for increased accuracy.",
        "properties": {
          "mcc": {
            "$ref": "#/components/schemas/Mcc"
          },
          "mnc": {
            "$ref": "#/components/schemas/Mnc"
          },
          "lac": {
            "$ref": "#/components/schemas/Lac"
          },
          "cid": {
            "$ref": "#/components/schemas/GsmCellId"
          },
          "rssi": {
            "$ref": "#/components/schemas/Rssi"
          },
          "nmr": {
            "items": {
              "$ref": "#/components/schemas/GsmNeighborMeasurement"
            },
            "type": "array"
          }
        },
        "required": [
          "mcc",
          "mnc",
          "lac",
          "cid"
        ],
        "type": "object"
      },
      "WcdmaNeighborMeasurement": {
        "description": "WCDMA neighbor cell information. Only used with vendors that support WCDMA neighbors (HERE). 'uarfcn' and 'psc' are required per neighbor; a neighbor missing either is dropped.",
        "properties": {
          "uarfcn": {
            "$ref": "#/components/schemas/Uarfcn"
          },
          "psc": {
            "$ref": "#/components/schemas/Psc"
          },
          "rscp": {
            "$ref": "#/components/schemas/Rscp"
          }
        },
        "required": [
          "uarfcn",
          "psc"
        ],
        "type": "object"
      },
      "WcdmaCell": {
        "description": "WCDMA (UMTS/3G) cell information. Use the 'nmr' property to send neighbor cell measurements for increased accuracy.",
        "properties": {
          "mcc": {
            "$ref": "#/components/schemas/Mcc"
          },
          "mnc": {
            "$ref": "#/components/schemas/Mnc"
          },
          "lac": {
            "$ref": "#/components/schemas/Lac"
          },
          "cid": {
            "$ref": "#/components/schemas/WcdmaCid"
          },
          "rscp": {
            "$ref": "#/components/schemas/Rscp"
          },
          "nmr": {
            "items": {
              "$ref": "#/components/schemas/WcdmaNeighborMeasurement"
            },
            "type": "array"
          }
        },
        "required": [
          "mcc",
          "mnc",
          "cid"
        ],
        "type": "object"
      },
      "CellRequest": {
        "properties": {
          "lte": {
            "items": {
              "$ref": "#/components/schemas/LteCell"
            },
            "type": "array"
          },
          "ltecatm": {
            "items": {
              "$ref": "#/components/schemas/LteCatMCell"
            },
            "type": "array"
          },
          "nbiot": {
            "items": {
              "$ref": "#/components/schemas/NbIoTCell"
            },
            "type": "array"
          },
          "gsm": {
            "items": {
              "$ref": "#/components/schemas/GsmCell"
            },
            "type": "array"
          },
          "wcdma": {
            "items": {
              "$ref": "#/components/schemas/WcdmaCell"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DoReplyFlag": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "number",
            "format": "double"
          }
        ],
        "default": "true",
        "description": "Controls the response body. If boolean false or number 0, response body will be empty."
      },
      "FallbackFlag": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "number",
            "format": "double"
          },
          {
            "type": "string",
            "enum": [
              "singleWifi"
            ]
          }
        ],
        "default": "true",
        "description": "nRF Cloud will always return the most accurate response based on cell tower location or AP location for wifi, if available.\nWhen not available, nRF Cloud falls back to area-level location estimate based on cell tower tracking area code.\n\nTo disable this behavior, set fallback=false. This will ignore cell tracking area and return a 404 in event a higher accuracy response cannot be provided.\n\nTo allow a less accurate location estimate from a single Wi-Fi access point, set fallback=singleWifi. Only applies to the ground-fix endpoint.\nBy default, a Wi-Fi request requires at least two access points with valid MAC addresses, or one access point combined with cell data.\nWith fallback=singleWifi, a request containing only one access point is accepted. This setting must be requested explicitly and is never enabled by default.\nIt replaces the cell tracking area fallback for the request."
      },
      "HighConfidenceFlag": {
        "type": "boolean",
        "default": "false",
        "description": "nRF Cloud automatically uses a 68% confidence interval when estimating the Horizontal Positioning Error (HPE) for a location.\nThis means that there is a 68% probability that the device's actual location is within the HPE radius of the returned coordinates.\nEnabling this flag will use a 95% confidence interval instead, resulting in a larger HPE radius, and a higher probability that the\ndevice's actual location is within the circle."
      },
      "Timestamp": {
        "type": "string",
        "example": "2021-03-07T21:02:51.907Z",
        "description": "ISO 8601 format. Example 2021-03-07T21:02:51.907Z"
      },
      "WifiChannel": {
        "type": "number",
        "format": "double",
        "example": 12
      },
      "SignalStrength": {
        "type": "number",
        "format": "double",
        "example": -42,
        "description": "Signal strength in dBm, between -128 and 0"
      },
      "WifiAge": {
        "type": "number",
        "format": "double",
        "example": 500,
        "description": "The number of milliseconds since this access point was detected."
      },
      "SignalToNoiseRatio": {
        "type": "number",
        "format": "double",
        "description": "The current signal to noise ratio measured in dB."
      },
      "Frequency": {
        "type": "number",
        "format": "double",
        "example": 2412,
        "description": "Channel frequency in MHz"
      },
      "GeoAddressFormatted": {
        "type": "string",
        "description": "Description of the address, created from values in the 'address' property"
      },
      "GeoCountry": {
        "type": "string",
        "example": "United States of America",
        "description": "Country"
      },
      "GeoState": {
        "type": "string",
        "example": "Oregon",
        "description": "State, province, or region."
      },
      "GeoCountryCode": {
        "type": "string",
        "example": "US",
        "description": "Country Code - 2 letter (ISO 3166-1 alpha-2)"
      },
      "GeoCounty": {
        "type": "string",
        "description": "Geographic region in a country"
      },
      "GeoPostalCode": {
        "type": "string",
        "example": "97123",
        "description": "Postcode, PIN, zip code"
      },
      "GeoStateCode": {
        "type": "string",
        "example": "OR",
        "description": "State or province code"
      },
      "GeoCity": {
        "type": "string",
        "example": "Portland",
        "description": "City, town, municipality, borough, hamlet"
      },
      "GeoSuburb": {
        "type": "string",
        "description": "Geographic region used for residential and commercial purposes"
      },
      "GeoStreet": {
        "type": "string",
        "example": "Main St.",
        "description": "Road, pathway, motorway, highway"
      },
      "GeoStreetNumber": {
        "type": "string",
        "example": "123",
        "description": "House or building number"
      },
      "ReverseGeoAddress": {
        "properties": {
          "country": {
            "$ref": "#/components/schemas/GeoCountry"
          },
          "state": {
            "$ref": "#/components/schemas/GeoState"
          },
          "countryCode": {
            "$ref": "#/components/schemas/GeoCountryCode"
          },
          "county": {
            "$ref": "#/components/schemas/GeoCounty"
          },
          "postalCode": {
            "$ref": "#/components/schemas/GeoPostalCode"
          },
          "stateCode": {
            "$ref": "#/components/schemas/GeoStateCode"
          },
          "city": {
            "$ref": "#/components/schemas/GeoCity"
          },
          "suburb": {
            "$ref": "#/components/schemas/GeoSuburb"
          },
          "street": {
            "$ref": "#/components/schemas/GeoStreet"
          },
          "streetNumber": {
            "$ref": "#/components/schemas/GeoStreetNumber"
          }
        },
        "required": [
          "country",
          "state"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ReverseGeoResponse": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          },
          "formatted": {
            "$ref": "#/components/schemas/GeoAddressFormatted"
          },
          "address": {
            "$ref": "#/components/schemas/ReverseGeoAddress"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty",
          "formatted",
          "address"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Accuracy": {
        "type": "number",
        "format": "double",
        "example": 15,
        "description": "Accuracy in (2D 1-sigma) in meters."
      },
      "Altitude": {
        "type": "number",
        "format": "double",
        "example": 159,
        "description": "Altitude above WGS 84 ellipsoid in meters."
      },
      "Speed": {
        "type": "number",
        "format": "double",
        "example": 1,
        "description": "Horizontal speed in meters per second."
      },
      "Heading": {
        "type": "number",
        "format": "double",
        "example": 90,
        "description": "Heading of movement in degrees."
      },
      "GpsRequest": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "acc": {
            "$ref": "#/components/schemas/Accuracy"
          },
          "alt": {
            "$ref": "#/components/schemas/Altitude"
          },
          "spd": {
            "$ref": "#/components/schemas/Speed"
          },
          "hdg": {
            "$ref": "#/components/schemas/Heading"
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "type": "object",
        "additionalProperties": {}
      },
      "NmeaSentence": {
        "type": "string",
        "example": "$GPGGA,141857.00,6326.27721,N,01028.07264,E,1,09,0.81,35.1,M,39.8,M,,*6B",
        "description": "NMEA 0183 GNSS sentence. See <a href=\"https://www.nmea.org/nmea-0183.html\" target=\"_blank\">this page</a> for more details."
      },
      "NrfMessageType": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17
        ],
        "type": "number"
      },
      "AssistanceRequest": {
        "properties": {
          "types": {
            "items": {
              "$ref": "#/components/schemas/NrfMessageType"
            },
            "type": "array",
            "description": "Type of assistance data (see description above). Defaults to [1, 2, 3, 4, 6, 7, 9]"
          },
          "mcc": {
            "$ref": "#/components/schemas/Mcc"
          },
          "mnc": {
            "$ref": "#/components/schemas/Mnc"
          },
          "tac": {
            "$ref": "#/components/schemas/Tac"
          },
          "eci": {
            "$ref": "#/components/schemas/Eci"
          },
          "rsrp": {
            "$ref": "#/components/schemas/Rsrp"
          },
          "filtered": {
            "$ref": "#/components/schemas/FilteredEphemerisFlag"
          },
          "mask": {
            "$ref": "#/components/schemas/SatelliteMaskAngle"
          }
        },
        "type": "object"
      },
      "PgpsHost": {
        "type": "string",
        "example": "pgnss.nrfcloud.com",
        "description": "The protocol-agnostic URL for accessing PGNSS prediction files."
      },
      "PgpsFilePath": {
        "type": "string",
        "example": "public/15131-0_15135-72000.bin",
        "description": "The path to the file that contains PGNSS prediction data."
      },
      "PredictionCount": {
        "type": "number",
        "format": "double",
        "description": "The number of predictions requested. Default is 42 (7 days, 6 predictions per day). Valid range 1..42\nThe number of possible predictions depends on StartGpsDay and PredictionInterval"
      },
      "PredictionInterval": {
        "type": "number",
        "format": "double",
        "description": "The time between predictions (in minutes). Defaults to 240 (4 hours). Valid value is: 240"
      },
      "StartGpsDay": {
        "type": "number",
        "format": "double",
        "example": 15131,
        "description": "The start day of the prediction set as GPS Day (days since the GPS epoch). Defaults to current GPS day.\nValid range currentGpsDay..currentGpsDay + 6."
      },
      "StartGpsTime": {
        "type": "number",
        "format": "double",
        "description": "The start time of the prediction set as seconds in day. Defaults to 0. Valid range 0..86399"
      },
      "LocationServiceType.WIFI": {
        "enum": [
          "WIFI"
        ],
        "type": "string"
      },
      "GroundFixServiceType": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LocationServiceType.MCELL"
          },
          {
            "$ref": "#/components/schemas/LocationServiceType.SCELL"
          },
          {
            "$ref": "#/components/schemas/LocationServiceType.WIFI"
          }
        ]
      },
      "AltLocationResponse": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          },
          "fulfilledWith": {
            "$ref": "#/components/schemas/GroundFixServiceType"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty",
          "fulfilledWith"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AltLocationDist": {
        "type": "number",
        "format": "double",
        "description": "Distance in meters between the alternate location and the main location."
      },
      "AlternateLocation": {
        "properties": {
          "loc": {
            "$ref": "#/components/schemas/AltLocationResponse"
          },
          "dist": {
            "$ref": "#/components/schemas/AltLocationDist"
          }
        },
        "required": [
          "loc",
          "dist"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "GroundFixResponseWithFulfillment": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          },
          "fulfilledWith": {
            "$ref": "#/components/schemas/GroundFixServiceType"
          },
          "alt": {
            "$ref": "#/components/schemas/AlternateLocation"
          },
          "reverseGeo": {
            "$ref": "#/components/schemas/ReverseGeoResponse"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty",
          "fulfilledWith"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AccessPointWithFrequency": {
        "properties": {
          "macAddress": {
            "$ref": "#/components/schemas/MacAddress"
          },
          "ssid": {
            "type": "string"
          },
          "signalStrength": {
            "$ref": "#/components/schemas/SignalStrength"
          },
          "age": {
            "$ref": "#/components/schemas/WifiAge"
          },
          "signalToNoiseRatio": {
            "$ref": "#/components/schemas/SignalToNoiseRatio"
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "required": [
          "macAddress"
        ],
        "type": "object"
      },
      "AccessPointWithChannel": {
        "properties": {
          "macAddress": {
            "$ref": "#/components/schemas/MacAddress"
          },
          "ssid": {
            "type": "string"
          },
          "signalStrength": {
            "$ref": "#/components/schemas/SignalStrength"
          },
          "age": {
            "$ref": "#/components/schemas/WifiAge"
          },
          "signalToNoiseRatio": {
            "$ref": "#/components/schemas/SignalToNoiseRatio"
          },
          "channel": {
            "$ref": "#/components/schemas/WifiChannel"
          }
        },
        "required": [
          "macAddress"
        ],
        "type": "object"
      },
      "AccessPoint": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/AccessPointWithFrequency"
          },
          {
            "$ref": "#/components/schemas/AccessPointWithChannel"
          }
        ]
      },
      "GroundFixRequest": {
        "properties": {
          "lte": {
            "items": {
              "$ref": "#/components/schemas/LteCell"
            },
            "type": "array"
          },
          "ltecatm": {
            "items": {
              "$ref": "#/components/schemas/LteCatMCell"
            },
            "type": "array"
          },
          "nbiot": {
            "items": {
              "$ref": "#/components/schemas/NbIoTCell"
            },
            "type": "array"
          },
          "gsm": {
            "items": {
              "$ref": "#/components/schemas/GsmCell"
            },
            "type": "array"
          },
          "wcdma": {
            "items": {
              "$ref": "#/components/schemas/WcdmaCell"
            },
            "type": "array"
          },
          "wifi": {
            "items": {
              "$ref": "#/components/schemas/AccessPoint"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "WifiAccessPointsRequest": {
        "properties": {
          "accessPoints": {
            "items": {
              "$ref": "#/components/schemas/AccessPoint"
            },
            "type": "array"
          }
        },
        "required": [
          "accessPoints"
        ],
        "type": "object"
      },
      "DeprecatedWifiRequest": {
        "$ref": "#/components/schemas/WifiAccessPointsRequest"
      },
      "DeprecatedGroundFixRequest": {
        "properties": {
          "lte": {
            "items": {
              "$ref": "#/components/schemas/LteCell"
            },
            "type": "array"
          },
          "wifi": {
            "$ref": "#/components/schemas/DeprecatedWifiRequest"
          }
        },
        "type": "object",
        "deprecated": true
      },
      "DistanceThresholdFlag": {
        "type": "number",
        "format": "double",
        "default": "0",
        "description": "nRF Cloud combats stale and inaccurate Wi-Fi location data by comparing the distance between Wi-Fi and cell location (if provided).\nThis parameter allows the user to customize this behavior by setting the distance threshold used in that comparison, with the\nrequirement that cell location is also provided in the request.\n\nMeasured in meters (m)."
      },
      "AltLocationFlag": {
        "type": "boolean",
        "default": "false",
        "description": "nRF Cloud makes its best effort to return the most quality location data possible. Sometimes\nthat means choosing one location and throwing out the other. These details are omitted\nfrom the response to keep a small and succinct payload.\n\nSending alt=true will allow you to see this alternate location and its distance from the chosen\nlocation in meters."
      },
      "ReverseGeoFlag": {
        "type": "boolean",
        "default": "false",
        "description": "When enabled, the response will include reverse-geocoded address data for the resolved coordinates.\nThis adds a `reverseGeo` property to the response containing the address, formatted address string,\nand the coordinates/uncertainty of the resolved address.\nNote: enabling this flag results in two API requests internally — one for the geolocation and one for the\nreverse geocoding lookup, which each get charged independently."
      },
      "LocationTrackerId": {
        "$ref": "#/components/schemas/UUID",
        "description": "Unique identifier. Useful when deleting a record."
      },
      "TrackerServiceType": {
        "description": "This is the service used to obtain the location of a device.\nGNSS location is derived on the device and reported back to the cloud. 'GPS' type has been deprecated, but will still return for older records.\nThe '_EVAL' suffixed types are no longer produced, but still appear in records created while evaluation tokens existed.",
        "enum": [
          "GNSS",
          "GPS",
          "MCELL",
          "MCELL_EVAL",
          "SCELL",
          "SCELL_EVAL",
          "WIFI",
          "WIFI_EVAL"
        ],
        "type": "string"
      },
      "TrackerLatitude": {
        "type": "string",
        "example": "45.524098",
        "description": "GPS latitude."
      },
      "TrackerLongitude": {
        "type": "string",
        "example": "-122.688408",
        "description": "GPS Longitude."
      },
      "GnssMeta": {
        "description": "Metadata sent from device when reporting GNSS location in PVT format. Can include other non-gnss related key/value pairs for easy retrieval later. Only populated for GNSS PVT formatted fixes, empty object otherwise.",
        "properties": {
          "acc": {
            "$ref": "#/components/schemas/Accuracy"
          },
          "alt": {
            "$ref": "#/components/schemas/Altitude"
          },
          "spd": {
            "$ref": "#/components/schemas/Speed"
          },
          "hdg": {
            "$ref": "#/components/schemas/Heading"
          }
        },
        "required": [
          "acc",
          "alt",
          "spd",
          "hdg"
        ],
        "type": "object",
        "additionalProperties": false,
        "example": {
          "acc": 233.44,
          "spd": 11.22,
          "hdg": 76.8,
          "alt": 12
        }
      },
      "TrackerUncertainty": {
        "type": "string",
        "example": "934",
        "description": "Radius of the uncertainty circle around the location in meters. Also known as Horizontal Positioning Error (HPE)."
      },
      "LocationTrackerItem": {
        "properties": {
          "id": {
            "$ref": "#/components/schemas/LocationTrackerId"
          },
          "deviceId": {
            "$ref": "#/components/schemas/DeviceId"
          },
          "serviceType": {
            "$ref": "#/components/schemas/TrackerServiceType"
          },
          "insertedAt": {
            "$ref": "#/components/schemas/ISODateTimeString"
          },
          "recordedAt": {
            "description": "The time the location was actually recorded on the device. Currently only present for GNSS location history items recorded over MQTT where the message includes a `ts` property set to a valid Unix timestamp in milliseconds.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ISODateTimeString"
              }
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/TrackerLatitude"
          },
          "lon": {
            "$ref": "#/components/schemas/TrackerLongitude"
          },
          "meta": {
            "$ref": "#/components/schemas/GnssMeta"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/TrackerUncertainty"
          }
        },
        "required": [
          "id",
          "deviceId",
          "serviceType",
          "insertedAt",
          "lat",
          "lon",
          "meta",
          "uncertainty"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResult_LocationTrackerItem_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LocationTrackerItem"
            },
            "type": "array"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Reflects the total results returned by the query, which may be less than the total number\nof items available. If the response contains a `pageNextToken` value, you can supply the\n`pageNextToken` in the next request to get more results. The maximum value of `total` is the page limit of the request,\nor ten pages if no page limit is provided.",
            "example": 10,
            "minimum": 0
          },
          "pageNextToken": {
            "type": "string",
            "description": "Token used to retrieve the next page of items in the list. Present in a response only if the total available results exceeds the specified limit on a page. This token does not change between requests.\nWhen supplying as a request parameter, use URL-encoding.",
            "example": "4bb1f9ab35bd"
          }
        },
        "required": [
          "items"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "SingleCellResponseBuffer": {
        "type": "string",
        "format": "byte",
        "example": "<Buffer>",
        "description": "Lat/lon/uncertainty as a binary struct."
      },
      "CellResponse": {
        "$ref": "#/components/schemas/PositionResponse"
      },
      "SingleCellFormat": {
        "description": "Format of the single-cell GET endpoint request. Defaults to binary.",
        "enum": [
          "json",
          "binary"
        ],
        "type": "string"
      },
      "PositionResponseWithExtras": {
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lon": {
            "$ref": "#/components/schemas/Longitude"
          },
          "uncertainty": {
            "$ref": "#/components/schemas/Uncertainty"
          }
        },
        "required": [
          "lat",
          "lon",
          "uncertainty"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WifiResponse": {
        "$ref": "#/components/schemas/PositionResponseWithExtras"
      }
    },
    "securitySchemes": {
      "Simple Token": {
        "type": "http",
        "scheme": "Bearer",
        "description": "Endpoints that specify Authorizations of \"Simple Token\" require you to send your API key\nin the `Authorization` header, e.g., using cURL: `-H \"Authorization: Bearer\nd8be845e816e45d4a9529a6cfcd459c88e3c22b5\"`. Your API key can be found in\nthe Account section of nRFCloud.com.\n\nFor more information on API keys, see\n[the API Key section](https://docs.nordicsemi.com/bundle/nrf-cloud/page/APIs/REST/RESTOverview.html#api-key)\nin the nRF Cloud documentation.\n"
      },
      "Organization Auth Token": {
        "type": "http",
        "scheme": "Bearer",
        "description": "To authorize a request with an Organization Auth Token (OAT), send the token in the\n`Authorization` header, e.g., using cURL: `-H \"Authorization: Bearer $NRFCLOUD_OAT\"`.\n\nAn OAT authenticates requests from a cloud-to-cloud integration, granting access to your\norganization's resources. An Organization Admin creates one under Admin > Organization Auth\nTokens; the token is shown only once, so store it securely.\n\nFor more information on Organization Auth Tokens, see\n[the Organization Auth Tokens documentation](https://docs.nrfcloud.com/docs/platform/organization-auth-tokens).\nFor setup instructions specific to Location Services, see\n[the Location Services Quickstart](https://docs.nrfcloud.com/docs/reference/location-services-quickstart).\n"
      },
      "JSON Web Token": {
        "type": "http",
        "scheme": "Bearer",
        "description": "To authorize a request with a JSON Web Token (JWT), send the token in the\n`Authorization` header, e.g., using cURL: `-H \"Authorization: Bearer $JWT\"`.\n\nJWTs are for device-to-cloud requests: a Nordic Semiconductor device signs a JWT with its\nown private key to authenticate itself. Devices running the nRF Connect SDK generate and\nsign JWTs automatically once onboarded.\n\nFor more information on the required JWT algorithm, payload contents and how to generate JWTs, see\n[the JWT authentication documentation](https://docs.nrfcloud.com/docs/legacy-nrfcloud/jwt-authentication).\n"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Device Management",
      "tags": [
        "All Devices",
        "IP Devices",
        "Messages",
        "Alerts"
      ]
    },
    {
      "name": "Firmware Over-the-Air (FOTA) Update Service",
      "tags": [
        "The FOTA Service",
        "Firmware Bundles",
        "FOTA Jobs",
        "FOTA Job Executions"
      ]
    },
    {
      "name": "Location Services",
      "tags": [
        "Hostname",
        "Assisted GPS",
        "Cell Location",
        "Geocoding",
        "GNSS",
        "Ground Fix",
        "Location History",
        "Predicted GPS",
        "Single Cell",
        "Wi-Fi Location"
      ]
    },
    {
      "name": "Miscellaneous",
      "tags": [
        "Bulk Ops Requests",
        "OpenAPI Specification"
      ]
    }
  ]
}