User Tools

Site Tools


api:flexcare:adbcommand:update

API : FlexCare : ADB command : Update

Introduction

This will update an existing ADB (Android Debug Bridge) command in FlexCare.

The update is partial — only the fields supplied in the body are changed, the rest are left untouched. The command's updatedAt timestamp is set automatically.

Request

URL https://api.telecomx.dk/flexcare/adb/command/:id
Method POST
Access level RESELLER admin (with the TV employee feature)
ADMIN
Params id [required] ObjectId of the ADB command to update.
Body name [optional] New command name, 2–64 characters.
command [optional] New raw ADB command string, at least 1 character.

Request body

{
   name: "Reboot device (soft)",
   command: "adb reboot"
}

Response

The response is the updated ADB command object.

Command
_id ObjectId Unique id of the command
name String Command name (2–64 characters)
command String The raw ADB command string
createdAt Date When the command was created
updatedAt Date When the command was last updated (set to the current time on every update)

Example

{
   _id: "1234567890ABCD1234567890",
   name: "Reboot device (soft)",
   command: "adb reboot",
   createdAt: "2026-05-01T10:00:00.000Z",
   updatedAt: "2026-06-09T10:00:00.000Z"
}

Errors

Error code Message Description
422 id id must be a valid ObjectId.
422 name name must be 2–64 characters.
422 command command must be at least 1 character.
403 access_denied Insufficient access level — minimum RESELLER admin required, or the RESELLER admin does not have the TV employee feature.
404 id ADB command not found.
500 internal_error <Unspecified>
api/flexcare/adbcommand/update.txt · Last modified: by Mikkel Frederiksen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki