Table of Contents

API : FlexCare : ADB command : Create

Introduction

This will create a new ADB (Android Debug Bridge) command in FlexCare.

The new command is added to the shared catalogue of ADB commands and can then be listed, retrieved, updated or deleted.

Request

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

Request body

{
   name: "Reboot device",
   command: "adb reboot"
}

Response

The response is the newly created 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 (null until first update)

Example

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

Errors

Error code Message Description
422 name name is required and must be 2–64 characters.
422 command command is required and 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.
500 internal_error <Unspecified>