> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.nukio.mx/llms.txt.
> For full documentation content, see https://developers.nukio.mx/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.nukio.mx/_mcp/server.

# firmwareUpdate

GET https://app.nukio.mx/api/v1/command/firmware-update/authorization
Content-Type: application/json

Reference: https://developers.nukio.mx/nukio-api/device/firmware-update

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/command/firmware-update/authorization:
    get:
      operationId: firmware-update
      summary: firmwareUpdate
      tags:
        - subpackage_device
      parameters:
        - name: authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device_firmwareUpdate_Response_200'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                payload:
                  type: string
                deviceID:
                  type: string
                accountID:
                  type: string
              required:
                - payload
                - deviceID
                - accountID
servers:
  - url: https://app.nukio.mx
components:
  schemas:
    Device_firmwareUpdate_Response_200:
      type: object
      properties:
        reason:
          type: string
        success:
          type: string
        status_code:
          type: integer
      required:
        - reason
        - success
        - status_code
      title: Device_firmwareUpdate_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: authorization

```

## SDK Code Examples

```python Device_firmwareUpdate_example
import requests

url = "https://app.nukio.mx/api/v1/command/firmware-update/authorization"

payload = {
    "payload": "binaryfirmware",
    "deviceID": "deviceID",
    "accountID": "accountID"
}
headers = {
    "authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript Device_firmwareUpdate_example
const url = 'https://app.nukio.mx/api/v1/command/firmware-update/authorization';
const options = {
  method: 'GET',
  headers: {authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"payload":"binaryfirmware","deviceID":"deviceID","accountID":"accountID"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Device_firmwareUpdate_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.nukio.mx/api/v1/command/firmware-update/authorization"

	payload := strings.NewReader("{\n  \"payload\": \"binaryfirmware\",\n  \"deviceID\": \"deviceID\",\n  \"accountID\": \"accountID\"\n}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Device_firmwareUpdate_example
require 'uri'
require 'net/http'

url = URI("https://app.nukio.mx/api/v1/command/firmware-update/authorization")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"payload\": \"binaryfirmware\",\n  \"deviceID\": \"deviceID\",\n  \"accountID\": \"accountID\"\n}"

response = http.request(request)
puts response.read_body
```

```java Device_firmwareUpdate_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.nukio.mx/api/v1/command/firmware-update/authorization")
  .header("authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"payload\": \"binaryfirmware\",\n  \"deviceID\": \"deviceID\",\n  \"accountID\": \"accountID\"\n}")
  .asString();
```

```php Device_firmwareUpdate_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.nukio.mx/api/v1/command/firmware-update/authorization', [
  'body' => '{
  "payload": "binaryfirmware",
  "deviceID": "deviceID",
  "accountID": "accountID"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Device_firmwareUpdate_example
using RestSharp;

var client = new RestClient("https://app.nukio.mx/api/v1/command/firmware-update/authorization");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"payload\": \"binaryfirmware\",\n  \"deviceID\": \"deviceID\",\n  \"accountID\": \"accountID\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Device_firmwareUpdate_example
import Foundation

let headers = [
  "authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "payload": "binaryfirmware",
  "deviceID": "deviceID",
  "accountID": "accountID"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.nukio.mx/api/v1/command/firmware-update/authorization")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```