A user API token, or a product API key created in a product's settings.
A product API key only works on the routes for its own product, under
/api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier}
for that product's devices. What it may do there is decided by the role it
holds, the same way a member's role decides what they may do.
Path Parameters
org_name
string
required
Organization Name
product_name
string
required
Product Name
identifier
string
required
Device Identifier
Body
application/json
Device update request body
PUT body for updating a Device. Only the fields given are changed, and fields not listed here are ignored.
The device's fields are also read from the top level of the body when it has no device object.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"NervesHub","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-light-t.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=4fcfcec9804e3d1c56649d112bd05a07","dark":"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-dark.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=77bf0bf18a9cd7e7d6297f9d4edadb90","href":"/"},"favicon":{"light":"https://mintcdn.com/nervescloud/LUktOqWBfC2J1-GL/images/favicon.svg?fit=max\u0026auto=format\u0026n=LUktOqWBfC2J1-GL\u0026q=85\u0026s=f5dc1749a812cc58283e4a849867d83e","dark":"https://mintcdn.com/nervescloud/LUktOqWBfC2J1-GL/images/favicon.svg?fit=max\u0026auto=format\u0026n=LUktOqWBfC2J1-GL\u0026q=85\u0026s=f5dc1749a812cc58283e4a849867d83e"},"navbar":{"links":[{"href":"https://nerves-hub.org","label":"NervesHub"},{"href":"https://nervescloud.com","label":"NervesCloud"},{"href":"https://discord.gg/Xb4pedSDy9","label":"Discord"}]},"footer":{"socials":{"github":"https://github.com/nerves-hub"}},"contextual":{"options":["copy","view","chatgpt","claude","download-pdf"],"display":"toc"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nervescloud","hasAudioNarration":false,"actualSubdomain":"nervescloud","customDomains":["docs.nerves-hub.org"],"gitSource":{"type":"github","owner":"nerves-hub","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b07dba1624292494269dc2a","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"HTTP API","count":100},{"language":"default","tag":"Endpoints","count":98},{"language":"default","tag":"Documentation","count":64},{"language":"default","tag":"Devices","count":14},{"language":"default","tag":"Devices (short URL)","count":11},{"language":"default","tag":"Firmware Updates","count":10},{"language":"default","tag":"Deployment Groups","count":9},{"language":"default","tag":"Extensions","count":8},{"language":"default","tag":"Device Management","count":8},{"language":"default","tag":"Webhooks","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".chat-assistant-floating-input{display:none!important}"}]}
{"page":{"pagePath":"api-reference/devices/update-a-device","slug":"/api-reference/devices/update-a-device","pageMetadata":{"title":"Update a Device","description":null,"deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}/devices/{identifier}","href":"/api-reference/devices/update-a-device","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a Device","description":null,"deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}/devices/{identifier}","href":"/api-reference/devices/update-a-device","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"callbacks":{},"deprecated":false,"operationId":"NervesHubWeb.API.DevicesController.update","parameters":["8e43d353-8687-4406-b0e6-101c3797f297","9b8ccbb6-8e3c-4f00-8df5-1b6286775c75","23a6daec-2bfa-4e60-8362-a96efb0a2c37"],"requestBody":"2fdab2f5-3a0d-40da-8c8f-225dca351c9a","responses":{"201":"e8c6921d-bf0d-4aab-a6c5-ca0280053e12","401":"426081f6-efa3-4298-9022-5d23ea62afcc","403":"01b3890e-b806-43ee-9638-0ff7fc86fe7b","404":"6b537e86-7f02-4f7e-9eff-2f14ec654d74","422":"92db0e77-e4b9-4d93-a941-458b168ec102"},"security":["3c0e41c8-116f-4253-b391-306d4033eea5"],"summary":"Update a Device","tags":["Devices"],"method":"put","type":"path","servers":["ef03cf9c-7e55-4c7c-a5e0-452fab9c6eca"],"path":"/api/orgs/{org_name}/products/{product_name}/devices/{identifier}","baseUrlOptions":["https://manage.nervescloud.com"],"title":"Update a Device","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8e43d353-8687-4406-b0e6-101c3797f297":{"description":"Organization Name","example":"example_org","in":"path","name":"org_name","required":true,"schema":{"type":"string","isRequired":true,"description":"Organization Name","uniqueKey":"","typeLabel":"string"}},"9b8ccbb6-8e3c-4f00-8df5-1b6286775c75":{"description":"Product Name","example":"example_product","in":"path","name":"product_name","required":true,"schema":{"type":"string","isRequired":true,"description":"Product Name","uniqueKey":"","typeLabel":"string"}},"23a6daec-2bfa-4e60-8362-a96efb0a2c37":{"description":"Device Identifier","example":"abc123","in":"path","name":"identifier","required":true,"schema":{"type":"string","isRequired":true,"description":"Device Identifier","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"description":"PUT body for updating a Device. Only the fields given are changed, and fields not listed here are ignored.\n\nThe device's fields are also read from the top level of the body when it has no `device` object.\n","example":{"device":{"description":"Example Device","managed_updates_allowed":true,"tags":["prod","customerJNK"],"update_mode":"device_managed"}},"properties":{"device":{"properties":{"connecting_code":{"description":"Elixir code the device runs on its console each time it connects, after any from its deployment group and release.","type":"string","uniqueKey":"device.connecting_code","typeLabel":"string"},"description":{"type":"string","uniqueKey":"device.description","typeLabel":"string"},"managed_updates_allowed":{"description":"Whether the device may move itself between automatic and device_managed. A new device starts with its product's default when this isn't given. Each time it is set to a value the device doesn't already have, that is recorded in the audit log. Taking it away does not move a device that is already device_managed; set update_mode for that.","type":"boolean","uniqueKey":"device.managed_updates_allowed","typeLabel":"boolean"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"device.tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"A list of tags, or one comma-separated string of them. A tag cannot contain spaces.","uniqueKey":"device.tags.oneOf.0","typeLabel":"string[]"},{"type":"string","description":"A list of tags, or one comma-separated string of them. A tag cannot contain spaces.","uniqueKey":"device.tags.oneOf.1","typeLabel":"string"}],"uniqueKey":"device.tags","typeLabel":"string[] | string"},"update_mode":{"description":"How the device receives firmware. automatic: pushed by its deployment group. device_managed: the device asks for updates itself. off: neither, only a manual push. A change is recorded in the audit log. A device moved to automatic is considered by its deployment group straight away, rather than when it next connects.","enum":["off","automatic","device_managed"],"type":"string","uniqueKey":"device.update_mode","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"device","typeLabel":"object"}},"title":"DeviceUpdateRequest","type":"object","uniqueKey":"","typeLabel":"DeviceUpdateRequest · object"},"examples":{"Example":{"title":"Example","value":{"device":{"description":"Example Device","managed_updates_allowed":true,"tags":["prod","customerJNK"],"update_mode":"device_managed"}}}},"exampleType":"generated"}},"description":"Device update request body","required":true,"exampleType":"generated"},"responses":{"e8c6921d-bf0d-4aab-a6c5-ca0280053e12":{"content":{"application/json":{"schema":{"description":"Response schema for a single Device","example":{"data":{"connection_status":"connected","deleted":false,"deployment_group":{"firmware_uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","firmware_version":"1.2.3","is_active":true,"name":"Prod Deployment"},"description":"A great device","firmware_metadata":{"architecture":"arm","author":"","description":"Prod Firmware","fwup_version":"1.10.1","id":"3f2264c3-cc52-2ba9-b77d-e441f8bb91b6","misc":"extra comments","platform":"rpi5","product":"AmazingProduct","uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","vcs_identifier":"","version":"1.2.3"},"identifier":"abc123","last_communication":"2050-04-20 00:33:09.123456Z","managed_updates_allowed":false,"online":"connected","org_name":"BigCompany","product_name":"AmazingProduct","tags":["prod","customerABC"],"update_mode":"automatic","updates_blocked_until":null,"updates_enabled":true,"version":"1.2.3"}},"properties":{"data":{"example":{"connection_status":"connected","deleted":false,"deployment_group":{"firmware_uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","firmware_version":"1.2.3","is_active":true,"name":"Prod Deployment"},"description":"A great device","firmware_metadata":{"architecture":"arm","author":"","description":"Prod Firmware","fwup_version":"1.10.1","id":"3f2264c3-cc52-2ba9-b77d-e441f8bb91b6","misc":"extra comments","platform":"rpi5","product":"AmazingProduct","uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","vcs_identifier":"","version":"1.2.3"},"identifier":"abc123","last_communication":"2050-04-20 00:33:09.123456Z","managed_updates_allowed":false,"online":"connected","org_name":"BigCompany","product_name":"AmazingProduct","tags":["prod","customerABC"],"update_mode":"automatic","updates_blocked_until":null,"updates_enabled":true,"version":"1.2.3"},"properties":{"connection_status":{"description":"The device's connection state: `connecting` while its socket is open but not yet confirmed,\n`connected`, `disconnected`, or `not_seen` for a device with no recorded connection.\n","enum":["connecting","connected","disconnected","not_seen"],"type":"string","uniqueKey":"data.connection_status","typeLabel":"enum\u003cstring>"},"deleted":{"description":"Whether the device has been deleted. A deleted device can be restored in the web UI until the instance removes it for good.","type":"boolean","uniqueKey":"data.deleted","typeLabel":"boolean"},"deployment_group":{"oneOf":[{"properties":{"firmware_uuid":{"type":"string","uniqueKey":"data.deployment_group.oneOf.0.firmware_uuid","typeLabel":"string"},"firmware_version":{"type":"string","uniqueKey":"data.deployment_group.oneOf.0.firmware_version","typeLabel":"string"},"is_active":{"type":"boolean","uniqueKey":"data.deployment_group.oneOf.0.is_active","typeLabel":"boolean"},"name":{"type":"string","uniqueKey":"data.deployment_group.oneOf.0.name","typeLabel":"string"}},"type":"object","uniqueKey":"data.deployment_group.oneOf.0","typeLabel":"object"},{"properties":{"firmware_uuid":{"type":"string"},"firmware_version":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"}},"type":"null","uniqueKey":"data.deployment_group.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.deployment_group","typeLabel":"object | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"firmware_metadata":{"oneOf":[{"properties":{"architecture":{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.architecture","typeLabel":"string"},"author":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.author.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.author.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.author","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.description","typeLabel":"string | null"},"fwup_version":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.fwup_version.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.fwup_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.fwup_version","typeLabel":"string | null"},"id":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.id","typeLabel":"string | null"},"misc":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.misc.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.misc.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.misc","typeLabel":"string | null"},"platform":{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.platform","typeLabel":"string"},"product":{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.product","typeLabel":"string"},"uuid":{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.uuid","typeLabel":"string"},"vcs_identifier":{"oneOf":[{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.vcs_identifier.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.firmware_metadata.oneOf.0.vcs_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata.oneOf.0.vcs_identifier","typeLabel":"string | null"},"version":{"type":"string","uniqueKey":"data.firmware_metadata.oneOf.0.version","typeLabel":"string"}},"type":"object","uniqueKey":"data.firmware_metadata.oneOf.0","typeLabel":"object"},{"properties":{"architecture":{"type":"string"},"author":{"oneOf":[{"type":"string"},{"type":"null"}]},"description":{"oneOf":[{"type":"string"},{"type":"null"}]},"fwup_version":{"oneOf":[{"type":"string"},{"type":"null"}]},"id":{"oneOf":[{"type":"string"},{"type":"null"}]},"misc":{"oneOf":[{"type":"string"},{"type":"null"}]},"platform":{"type":"string"},"product":{"type":"string"},"uuid":{"type":"string"},"vcs_identifier":{"oneOf":[{"type":"string"},{"type":"null"}]},"version":{"type":"string"}},"type":"null","uniqueKey":"data.firmware_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.firmware_metadata","typeLabel":"object | null"},"identifier":{"type":"string","uniqueKey":"data.identifier","typeLabel":"string"},"last_communication":{"deprecated":true,"description":"When the device was last seen, written as `2050-04-20 00:33:09.123456Z` (a space rather\nthan a `T`, so not strictly RFC 3339), or `never` for a device with no recorded\nconnection.\n","type":"string","uniqueKey":"data.last_communication","typeLabel":"string"},"managed_updates_allowed":{"description":"Whether the device may move itself between automatic and device_managed.","type":"boolean","uniqueKey":"data.managed_updates_allowed","typeLabel":"boolean"},"online":{"deprecated":true,"description":"The same value as `connection_status`. Despite its name it is not a boolean.","enum":["connecting","connected","disconnected","not_seen"],"type":"string","uniqueKey":"data.online","typeLabel":"enum\u003cstring>"},"org_name":{"type":"string","uniqueKey":"data.org_name","typeLabel":"string"},"product_name":{"type":"string","uniqueKey":"data.product_name","typeLabel":"string"},"tags":{"oneOf":[{"items":{"type":"string","uniqueKey":"data.tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"data.tags.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","uniqueKey":"data.tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.tags","typeLabel":"string[] | null"},"update_mode":{"description":"How the device receives firmware. automatic: pushed by its deployment group. device_managed: the device asks for updates itself. off: neither, only a manual push.","enum":["off","automatic","device_managed"],"type":"string","uniqueKey":"data.update_mode","typeLabel":"enum\u003cstring>"},"updates_blocked_until":{"oneOf":[{"description":"Device penalty box expiration timestamp","format":"date-time","type":"string","uniqueKey":"data.updates_blocked_until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"Device penalty box expiration timestamp","format":"date-time","type":"null","uniqueKey":"data.updates_blocked_until.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.updates_blocked_until","typeLabel":"string\u003cdate-time> | null"},"updates_enabled":{"description":"Whether the device takes updates at all. False only when update_mode is off.","type":"boolean","uniqueKey":"data.updates_enabled","typeLabel":"boolean"},"version":{"description":"The firmware version the device reports, or `unknown` when it hasn't reported one.","type":"string","uniqueKey":"data.version","typeLabel":"string"}},"title":"Device","type":"object","uniqueKey":"data","typeLabel":"Device · object"}},"title":"DeviceResponse","type":"object","uniqueKey":"","typeLabel":"DeviceResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":{"connection_status":"connected","deleted":false,"deployment_group":{"firmware_uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","firmware_version":"1.2.3","is_active":true,"name":"Prod Deployment"},"description":"A great device","firmware_metadata":{"architecture":"arm","author":"","description":"Prod Firmware","fwup_version":"1.10.1","id":"3f2264c3-cc52-2ba9-b77d-e441f8bb91b6","misc":"extra comments","platform":"rpi5","product":"AmazingProduct","uuid":"6fd2bbc8-52b8-4826-5c2a-189968d0de23","vcs_identifier":"","version":"1.2.3"},"identifier":"abc123","last_communication":"2050-04-20 00:33:09.123456Z","managed_updates_allowed":false,"online":"connected","org_name":"BigCompany","product_name":"AmazingProduct","tags":["prod","customerABC"],"update_mode":"automatic","updates_blocked_until":null,"updates_enabled":true,"version":"1.2.3"}}}},"exampleType":"generated"}},"description":"Device Response","exampleType":"generated"},"426081f6-efa3-4298-9022-5d23ea62afcc":{"content":{"application/json":{"schema":{"description":"Error response","example":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}},"properties":{"errors":{"properties":{"detail":{"type":"string","uniqueKey":"errors.detail","typeLabel":"string"}},"type":"object","uniqueKey":"errors","typeLabel":"object"}},"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}}}},"exampleType":"generated"}},"description":"Unauthorized","exampleType":"generated"},"01b3890e-b806-43ee-9638-0ff7fc86fe7b":{"content":{"application/json":{"schema":{"description":"Error response","example":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}},"properties":{"errors":{"properties":{"detail":{"type":"string","uniqueKey":"errors.detail","typeLabel":"string"}},"type":"object","uniqueKey":"errors","typeLabel":"object"}},"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}}}},"exampleType":"generated"}},"description":"Forbidden","exampleType":"generated"},"6b537e86-7f02-4f7e-9eff-2f14ec654d74":{"content":{"application/json":{"schema":{"description":"Error response","example":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}},"properties":{"errors":{"properties":{"detail":{"type":"string","uniqueKey":"errors.detail","typeLabel":"string"}},"type":"object","uniqueKey":"errors","typeLabel":"object"}},"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"errors":{"detail":"Resource Not Found or Authorization Insufficient"}}}},"exampleType":"generated"}},"description":"Not Found","exampleType":"generated"},"92db0e77-e4b9-4d93-a941-458b168ec102":{"content":{"application/json":{"schema":{"description":"Validation error response","example":{"errors":{"identifier":["can't be blank"]}},"properties":{"errors":{"additionalProperties":{"items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"type":"object","uniqueKey":"errors","typeLabel":"object"}},"title":"ChangesetErrorResponse","type":"object","uniqueKey":"","typeLabel":"ChangesetErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"errors":{"identifier":["can't be blank"]}}}},"exampleType":"generated"}},"description":"Unprocessable Entity","exampleType":"generated"}},"security":{"3c0e41c8-116f-4253-b391-306d4033eea5":{"bearer_auth":{"description":"A user API token, or a product API key created in a product's settings.\n\nA product API key only works on the routes for its own product, under\n`/api/orgs/{org_name}/products/{product_name}`, and on `/api/devices/{identifier}`\nfor that product's devices. What it may do there is decided by the role it\nholds, the same way a member's role decides what they may do.\n","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearer_auth"}}},"servers":{"ef03cf9c-7e55-4c7c-a5e0-452fab9c6eca":{"url":"https://manage.nervescloud.com","variables":{}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"A user API token, or a product API key created in a product's settings.\n\nA product API key only works on the routes for its own product, under\n`/api/orgs/{org_name}/products/{product_name}`, and on `/api/devices/{identifier}`\nfor that product's devices. What it may do there is decided by the role it\nholds, the same way a member's role decides what they may do.\n","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearer_auth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A user API token, or a product API key created in a product's settings.\n\nA product API key only works on the routes for its own product, under\n`/api/orgs/{org_name}/products/{product_name}`, and on `/api/devices/{identifier}`\nfor that product's devices. What it may do there is decided by the role it\nholds, the same way a member's role decides what they may do.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer_auth","name":"Authorization"}],"title":"bearer_auth"}]},"originalFileLocation":"https://manage.nervescloud.com/api/openapi"},"subdomain":"nervescloud","siteName":"NervesHub","title":"Update a Device - NervesHub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T21:10:16.223Z","originalFileLocation":"api-reference/devices/update-a-device.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"NervesHub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a Device - NervesHub\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NervesHub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nerves-hub.org/api-reference/devices/update-a-device\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nervescloud.mintlify.site/_mintlify/api/og/v2?division=Devices\u0026amp;title=Update+a+Device\u0026amp;theme=6ded47518f3851c1eac87023\u0026amp;signature=2d252538af4a2b3c51d2e61ee519ad2256f5f9e9f180cb566411981493822511\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a Device - NervesHub\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nervescloud.mintlify.site/_mintlify/api/og/v2?division=Devices\u0026amp;title=Update+a+Device\u0026amp;theme=6ded47518f3851c1eac87023\u0026amp;signature=2d252538af4a2b3c51d2e61ee519ad2256f5f9e9f180cb566411981493822511\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nervescloud/N1H5AzYnduZJqgXB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NervesHub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nerves-hub.org/api-reference/devices/update-a-device\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/devices/update-a-device.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nerves-hub.org/#organization\",\"name\":\"NervesHub\",\"url\":\"https://docs.nerves-hub.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nervescloud/5bz8_cB7diUKfY2L/images/logo-lockup-light-t.png?fit=max\u0026auto=format\u0026n=5bz8_cB7diUKfY2L\u0026q=85\u0026s=4fcfcec9804e3d1c56649d112bd05a07\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nerves-hub.org#website\",\"name\":\"NervesHub\",\"url\":\"https://docs.nerves-hub.org\",\"publisher\":{\"@id\":\"https://docs.nerves-hub.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device#webpage\",\"url\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device\",\"name\":\"Update a Device\",\"dateModified\":\"2026-11-25T21:10:16.223Z\",\"isPartOf\":{\"@id\":\"https://docs.nerves-hub.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.nerves-hub.org/api-reference/products/retrieves-a-products-details\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Devices\",\"item\":\"https://docs.nerves-hub.org/api-reference/devices/request-a-device-upgrade-to-a-different-firmware\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a Device\",\"item\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device#apireference\",\"headline\":\"Update a Device\",\"name\":\"Update a Device\",\"url\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nerves-hub.org/api-reference/devices/update-a-device#webpage\"},\"dateModified\":\"2026-11-25T21:10:16.223Z\",\"publisher\":{\"@id\":\"https://docs.nerves-hub.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nerves-hub.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NervesHub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NervesHub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/devices/update-a-device.md","siteName":"NervesHub","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/installation"}]},{"tab":"HTTP API","groups":[{"group":"Basics","pages":[{"title":"HTTP API overview","sidebarTitle":"Overview","href":"/api/overview"},{"title":"API authentication","sidebarTitle":"Authentication","href":"/api/authentication"}]},{"group":"Endpoints","pages":[{"group":"Products","pages":[{"title":"Retrieves a Products details","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}","href":"/api-reference/products/retrieves-a-products-details"},{"title":"Update a Product's settings","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}","href":"/api-reference/products/update-a-products-settings"},{"title":"Delete an Organizations Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}","href":"/api-reference/products/delete-an-organizations-product"},{"title":"Update a Product's settings","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi patch /api/orgs/{org_name}/products/{product_name}","href":"/api-reference/products/update-a-products-settings-1"},{"title":"List all Products for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products","href":"/api-reference/products/list-all-products-for-an-organization"},{"title":"Create a new Product in an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products","href":"/api-reference/products/create-a-new-product-in-an-organization"}]},{"group":"Support Scripts","pages":[{"title":"List Support Scripts","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/scripts","href":"/api-reference/support-scripts/list-support-scripts"},{"title":"Create a Support Script","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/scripts","href":"/api-reference/support-scripts/create-a-support-script"},{"title":"Get a Support Script by ID","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/scripts/{id}","href":"/api-reference/support-scripts/get-a-support-script-by-id"},{"title":"Update a Support Script","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}/scripts/{id}","href":"/api-reference/support-scripts/update-a-support-script"},{"title":"Delete a Support Script by ID","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/scripts/{id}","href":"/api-reference/support-scripts/delete-a-support-script-by-id"}]},{"group":"Iroh Endpoints","pages":[{"title":"Show an Iroh Endpoint for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/iroh_endpoints/{identifier}","href":"/api-reference/iroh-endpoints/show-an-iroh-endpoint-for-an-organization"},{"title":"Delete an Iroh Endpoint for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/iroh_endpoints/{identifier}","href":"/api-reference/iroh-endpoints/delete-an-iroh-endpoint-for-an-organization"},{"title":"List all Iroh Endpoints for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/iroh_endpoints","href":"/api-reference/iroh-endpoints/list-all-iroh-endpoints-for-an-organization"},{"title":"Register an Iroh Endpoint for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/iroh_endpoints","href":"/api-reference/iroh-endpoints/register-an-iroh-endpoint-for-an-organization"}]},{"group":"CA Certificates","pages":[{"title":"List all CA Certificates for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/ca_certificates","href":"/api-reference/ca-certificates/list-all-ca-certificates-for-an-organization"},{"title":"Create a CA Certificate for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/ca_certificates","href":"/api-reference/ca-certificates/create-a-ca-certificate-for-an-organization"},{"title":"View an Organization's CA Certificate","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/ca_certificates/{serial}","href":"/api-reference/ca-certificates/view-an-organizations-ca-certificate"},{"title":"Delete an Organization's CA Certificate","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/ca_certificates/{serial}","href":"/api-reference/ca-certificates/delete-an-organizations-ca-certificate"},{"title":"Generate a token for verifying the ownership of a CA Certificate","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/ca_certificates/verification_token","href":"/api-reference/ca-certificates/generate-a-token-for-verifying-the-ownership-of-a-ca-certificate"}]},{"group":"Device Logs","pages":[{"title":"List the Log Lines a Device has sent","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/logs","href":"/api-reference/device-logs/list-the-log-lines-a-device-has-sent"}]},{"group":"Auth","pages":[{"title":"Authenticate a user (deprecated)","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/users/login","href":"/api-reference/auth/authenticate-a-user-deprecated"},{"title":"Check the CLI authentication progress","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/auth/cli_session/{token}","href":"/api-reference/auth/check-the-cli-authentication-progress"},{"title":"Start the CLI authentication process","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/auth/cli_session","href":"/api-reference/auth/start-the-cli-authentication-process"},{"title":"Show details of the currently logged in user","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/users/me","href":"/api-reference/auth/show-details-of-the-currently-logged-in-user"},{"title":"Authenticate a user","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/users/auth","href":"/api-reference/auth/authenticate-a-user"}]},{"group":"Deployment Groups","pages":[{"title":"Show one of a Deployment Group's releases","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/deployments/{name}/releases/{number}","href":"/api-reference/deployment-groups/show-one-of-a-deployment-groups-releases"},{"title":"Change whether a release is required, or its connecting code","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi patch /api/orgs/{org_name}/products/{product_name}/deployments/{name}/releases/{number}","href":"/api-reference/deployment-groups/change-whether-a-release-is-required-or-its-connecting-code"},{"title":"List a Deployment Group's releases, newest first","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/deployments/{name}/releases","href":"/api-reference/deployment-groups/list-a-deployment-groups-releases-newest-first"},{"title":"Create a release, which becomes the Deployment Group's current release","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/deployments/{name}/releases","href":"/api-reference/deployment-groups/create-a-release-which-becomes-the-deployment-groups-current-release"},{"title":"Show a Deployment Group","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/deployments/{name}","href":"/api-reference/deployment-groups/show-a-deployment-group"},{"title":"Update a Deployment Group","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}/deployments/{name}","href":"/api-reference/deployment-groups/update-a-deployment-group"},{"title":"Delete a Product's Deployment Group","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/deployments/{name}","href":"/api-reference/deployment-groups/delete-a-products-deployment-group"},{"title":"List all Deployment Groups for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/deployments","href":"/api-reference/deployment-groups/list-all-deployment-groups-for-a-product"},{"title":"Create a new Deployment Group for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/deployments","href":"/api-reference/deployment-groups/create-a-new-deployment-group-for-a-product"}]},{"group":"Device Certificates","pages":[{"title":"Show a Certificate for a Device","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/certificates/{serial}","href":"/api-reference/device-certificates/show-a-certificate-for-a-device"},{"title":"Delete a Device's Certificate","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/certificates/{serial}","href":"/api-reference/device-certificates/delete-a-devices-certificate"},{"title":"List all Certificates for a Device","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/certificates","href":"/api-reference/device-certificates/list-all-certificates-for-a-device"},{"title":"Create a Certificate for a Device","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/certificates","href":"/api-reference/device-certificates/create-a-certificate-for-a-device"}]},{"group":"Devices","pages":[{"title":"Request a Device upgrade to a different Firmware","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/upgrade","href":"/api-reference/devices/request-a-device-upgrade-to-a-different-firmware"},{"title":"Request a Device reboot","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/reboot","href":"/api-reference/devices/request-a-device-reboot"},{"title":"Clear the penalty box for a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/penalty","href":"/api-reference/devices/clear-the-penalty-box-for-a-device"},{"title":"Bulk create Devices from a manifest. Only a Microchip Trust and Go manifest is currently supported. The manifest is read before the import starts: an unknown format, or an entry that can't be read, gets a 422 keyed by where each problem is, such as `entries[3].payload`, and no device is created.","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/import","href":"/api-reference/devices/bulk-create-devices-from-a-manifest-only-a-microchip-trust-and-go-manifest-is-currently-supported-the-manifest-is-read-before-the-import-starts:-an-unknown-format-or-an-entry-that-cant-be-read-gets-a-422-keyed-by-where-each-problem-is-such-as-`entries[3]payload`-and-no-device-is-created"},{"title":"Request a Device run some Elixir code in it's console connection","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/code","href":"/api-reference/devices/request-a-device-run-some-elixir-code-in-its-console-connection"},{"title":"List Devices","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices","href":"/api-reference/devices/list-devices"},{"title":"Create a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices","href":"/api-reference/devices/create-a-device"},{"title":"Request a Device reconnect","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/reconnect","href":"/api-reference/devices/request-a-device-reconnect"},{"title":"Show a Device","description":null,"deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}","href":"/api-reference/devices/show-a-device"},{"title":"Update a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/products/{product_name}/devices/{identifier}","href":"/api-reference/devices/update-a-device"},{"title":"Delete a Device","description":null,"deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/devices/{identifier}","href":"/api-reference/devices/delete-a-device"},{"title":"Test a Devices Certificate authentication. Only a device in the product in the path matches.","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/auth","href":"/api-reference/devices/test-a-devices-certificate-authentication-only-a-device-in-the-product-in-the-path-matches"},{"title":"Move a Device to a different Product","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/move","href":"/api-reference/devices/move-a-device-to-a-different-product"},{"title":"Send a Support Script to a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/scripts/{name_or_id}","href":"/api-reference/devices/send-a-support-script-to-a-device"}]},{"group":"Webhooks","pages":[{"title":"Regenerate a Webhook's Signing Secret","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/webhooks/{id}/regenerate_secret","href":"/api-reference/webhooks/regenerate-a-webhooks-signing-secret"},{"title":"Send a Test Event to a Webhook","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/webhooks/{id}/test","href":"/api-reference/webhooks/send-a-test-event-to-a-webhook"},{"title":"List an Organization's Webhooks","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/webhooks","href":"/api-reference/webhooks/list-an-organizations-webhooks"},{"title":"Add a Webhook to an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/webhooks","href":"/api-reference/webhooks/add-a-webhook-to-an-organization"},{"title":"Get a Webhook","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/webhooks/{id}","href":"/api-reference/webhooks/get-a-webhook"},{"title":"Update a Webhook","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Delete a Webhook","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/webhooks/{id}","href":"/api-reference/webhooks/delete-a-webhook"},{"title":"Update a Webhook","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi patch /api/orgs/{org_name}/webhooks/{id}","href":"/api-reference/webhooks/update-a-webhook-1"}]},{"group":"Devices (short URL)","pages":[{"title":"Request a Device reconnect","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/reconnect","href":"/api-reference/devices-short-url/request-a-device-reconnect"},{"title":"List the Log Lines a Device has sent","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/devices/{identifier}/logs","href":"/api-reference/devices-short-url/list-the-log-lines-a-device-has-sent"},{"title":"Request a Device run some Elixir code in it's console connection","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/code","href":"/api-reference/devices-short-url/request-a-device-run-some-elixir-code-in-its-console-connection"},{"title":"Send a Support Script to a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/scripts/{name_or_id}","href":"/api-reference/devices-short-url/send-a-support-script-to-a-device"},{"title":"Request a Device upgrade to a different Firmware","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/upgrade","href":"/api-reference/devices-short-url/request-a-device-upgrade-to-a-different-firmware"},{"title":"Clear the penalty box for a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/devices/{identifier}/penalty","href":"/api-reference/devices-short-url/clear-the-penalty-box-for-a-device"},{"title":"List the Metric Reports a Device has sent","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/devices/{identifier}/metrics","href":"/api-reference/devices-short-url/list-the-metric-reports-a-device-has-sent"},{"title":"List Support Scripts","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/devices/{identifier}/scripts","href":"/api-reference/devices-short-url/list-support-scripts"},{"title":"Request a Device reboot","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/reboot","href":"/api-reference/devices-short-url/request-a-device-reboot"},{"title":"Move a Device to a different Product","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/devices/{identifier}/move","href":"/api-reference/devices-short-url/move-a-device-to-a-different-product"},{"title":"Show a Device","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/devices/{identifier}","href":"/api-reference/devices-short-url/show-a-device"}]},{"group":"Firmwares","pages":[{"title":"Show a Firmware","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/firmwares/{uuid}","href":"/api-reference/firmwares/show-a-firmware"},{"title":"Delete a Firmware","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/firmwares/{uuid}","href":"/api-reference/firmwares/delete-a-firmware"},{"title":"List all Firmwares for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/firmwares","href":"/api-reference/firmwares/list-all-firmwares-for-a-product"},{"title":"Upload a Firmware for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/firmwares","href":"/api-reference/firmwares/upload-a-firmware-for-a-product"},{"title":"Download a Firmware","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/firmwares/{uuid}/download","href":"/api-reference/firmwares/download-a-firmware"}]},{"group":"Signing Keys","pages":[{"title":"Show a Signing Key for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/keys/{name}","href":"/api-reference/signing-keys/show-a-signing-key-for-an-organization"},{"title":"Delete a Signing Key for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/keys/{name}","href":"/api-reference/signing-keys/delete-a-signing-key-for-an-organization"},{"title":"List all Firmware and Archive Signing Keys for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/keys","href":"/api-reference/signing-keys/list-all-firmware-and-archive-signing-keys-for-an-organization"},{"title":"Create a new Signing Key for an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/keys","href":"/api-reference/signing-keys/create-a-new-signing-key-for-an-organization"}]},{"group":"Organization Members","pages":[{"title":"List all members of an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/users","href":"/api-reference/organization-members/list-all-members-of-an-organization"},{"title":"Invite a user to an Organization","deprecated":true,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/users","href":"/api-reference/organization-members/invite-a-user-to-an-organization"},{"title":"Show membership details of a user in an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/users/{user_email}","href":"/api-reference/organization-members/show-membership-details-of-a-user-in-an-organization"},{"title":"Update a user's role in an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi put /api/orgs/{org_name}/users/{user_email}","href":"/api-reference/organization-members/update-a-users-role-in-an-organization"},{"title":"Remove a user from an Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/users/{user_email}","href":"/api-reference/organization-members/remove-a-user-from-an-organization"},{"title":"Invite a user to the Organization","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/users/invite","href":"/api-reference/organization-members/invite-a-user-to-the-organization"}]},{"group":"Archives","pages":[{"title":"Show an Archive","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/archives/{uuid}","href":"/api-reference/archives/show-an-archive"},{"title":"Download an Archive","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/archives/{uuid}/download","href":"/api-reference/archives/download-an-archive"},{"title":"List all Archives for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/archives","href":"/api-reference/archives/list-all-archives-for-a-product"},{"title":"Upload an Archive for a Product","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/archives","href":"/api-reference/archives/upload-an-archive-for-a-product"}]},{"group":"Device Metrics","pages":[{"title":"List the Metric Reports a Device has sent","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/metrics","href":"/api-reference/device-metrics/list-the-metric-reports-a-device-has-sent"}]},{"group":"Device Shared Secrets","pages":[{"title":"Deactivate a Device's Shared Secret","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi delete /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/shared_secrets/{key}","href":"/api-reference/device-shared-secrets/deactivate-a-devices-shared-secret"},{"title":"List a Device's Shared Secret Keys","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/shared_secrets","href":"/api-reference/device-shared-secrets/list-a-devices-shared-secret-keys"},{"title":"Create a Shared Secret for a Device","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi post /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/shared_secrets","href":"/api-reference/device-shared-secrets/create-a-shared-secret-for-a-device"}]},{"group":"Network Identities","pages":[{"title":"List the Network Identities a Device holds","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs/{org_name}/products/{product_name}/devices/{identifier}/network_identities","href":"/api-reference/network-identities/list-the-network-identities-a-device-holds"}]},{"group":"Platform Status","pages":[{"title":"Check platform status","deprecated":false,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /status/alive","href":"/api-reference/platform-status/check-platform-status"}]},{"group":"Organizations","pages":[{"title":"List all Organizations the authenticated user belongs to","deprecated":null,"version":null,"openapi":"https://manage.nervescloud.com/api/openapi get /api/orgs","href":"/api-reference/organizations/list-all-organizations-the-authenticated-user-belongs-to"}]}]}]},{"tab":"Device API","pages":[{"title":"Device API","href":"/device-api/websocket-overview"}]}]},"basePath":"","title":"Update a Device - NervesHub","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}