Dokumentation / Team / Endpunkt
POST

/api/v1/team/handovers/{id}/cancel

Geräteübergabe abbrechen

Anfrage#

POSIX-Shell · curl
curl --fail-with-body --request POST \
  "$ADBR_API_URL/api/v1/team/handovers/{id}/cancel" \
  -H "Authorization: Bearer $ADBR_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{}'

Verwende lokale Adresse und Token aus API & MCP. Ersetze Pfadplatzhalter wie {id} durch tatsächliche IDs.

Authentifizierung und Rechte#

Authentifizierung: Bearer-Token

Scopes: runtime:control

Alle aufgeführten Scopes sind erforderlich; admin erfüllt Scope-Prüfungen. Kontorechte, Anfrageinhalt, Tresorzustand und Ressourcenrechte können weitere Voraussetzungen setzen.

Parameter#

ParameterOrtPflichtBeschreibung
idpathJa
Vollständige Parameterschemas
OpenAPI JSON
[
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "in": "path",
    "name": "id",
    "required": true
  }
]

Anfragekörper#

Kein Anfragekörper deklariert.

Antworten#

200 · Standardantwort
OpenAPI JSON
{
  "description": "Default Response",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "id",
          "profile_id",
          "source_session_id",
          "generation",
          "requester_id",
          "target_member_id",
          "mode",
          "force",
          "state",
          "final_version",
          "error",
          "phase",
          "can_cancel",
          "can_retry"
        ],
        "properties": {
          "requester_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "target_device_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "profile_id": {
            "type": "string"
          },
          "source_session_id": {
            "type": "string"
          },
          "generation": {
            "type": "integer"
          },
          "requester_id": {
            "type": "string"
          },
          "target_member_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "takeover"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "close"
                ]
              }
            ]
          },
          "force": {
            "type": "boolean"
          },
          "state": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "requested"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "awaiting_approval"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "accepted"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "stopping"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "syncing"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "failed"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "reserved"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "completed"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "cancelled"
                ]
              }
            ]
          },
          "final_version": {
            "type": [
              "integer",
              "null"
            ]
          },
          "target_session": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "id",
                  "profile_id",
                  "member_id",
                  "base_version",
                  "expires_at",
                  "device_id",
                  "device_name",
                  "purpose",
                  "acquired_at",
                  "renewed_at",
                  "generation",
                  "phase",
                  "kernel_started",
                  "start_id",
                  "last_seen_at",
                  "kernel",
                  "termination",
                  "final_version",
                  "revoked"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "profile_id": {
                    "type": "string"
                  },
                  "member_id": {
                    "type": "string"
                  },
                  "base_version": {
                    "type": "integer"
                  },
                  "expires_at": {
                    "type": "integer"
                  },
                  "device_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "device_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "purpose": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "runtime"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "publish"
                            ]
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "acquired_at": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "renewed_at": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "generation": {
                    "type": "integer"
                  },
                  "phase": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "preparing"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "reserved"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "running"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "stopping"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "stopped"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "syncing"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "sync_failed"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "recovery_required"
                        ]
                      }
                    ]
                  },
                  "kernel_started": {
                    "type": "boolean"
                  },
                  "start_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "last_seen_at": {
                    "type": "integer"
                  },
                  "kernel": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "engine",
                          "build"
                        ],
                        "properties": {
                          "engine": {
                            "type": "string"
                          },
                          "build": {
                            "type": "string"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "termination": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "start_id",
                          "tree_empty",
                          "end_kind",
                          "cookies_preserved"
                        ],
                        "properties": {
                          "start_id": {
                            "type": "string"
                          },
                          "tree_empty": {
                            "type": "boolean"
                          },
                          "end_kind": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "clean"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "forced"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "crashed"
                                ]
                              }
                            ]
                          },
                          "cookies_preserved": {
                            "type": "boolean"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "final_version": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "revoked": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "can_approve": {
            "type": "boolean"
          },
          "hard_end": {
            "type": "boolean"
          },
          "created_at": {
            "type": "integer"
          },
          "updated_at": {
            "type": "integer"
          },
          "error": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "notices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "phase": {
            "type": "string"
          },
          "server_state": {
            "type": "string"
          },
          "target_error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "stage",
              "recovery_required",
              "target_session_id",
              "generation",
              "observed_at"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "stage": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "preflight"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "download"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "import"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "start"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "ack"
                    ]
                  }
                ]
              },
              "recovery_required": {
                "type": "boolean"
              },
              "target_session_id": {
                "type": "string"
              },
              "generation": {
                "type": "integer"
              },
              "observed_at": {
                "type": "integer"
              }
            }
          },
          "can_cancel": {
            "type": "boolean"
          },
          "can_retry": {
            "type": "boolean"
          }
        }
      }
    }
  }
}
default · HTTP-Fehlerhülle. Status und error.code bezeichnen den Fehler.
OpenAPI JSON
{
  "description": "HTTP error envelope. The status and error.code identify the failure.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/Error"
      }
    }
  }
}

Allgemeine Authentifizierungs- und Transportfehler können zusätzlich zu den dokumentierten Antworten auftreten.

OpenAPI-Definition#

Vollständige Operationsdefinition
OpenAPI JSON
{
  "summary": "Geräteübergabe abbrechen",
  "tags": [
    "Team"
  ],
  "parameters": [
    {
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "in": "path",
      "name": "id",
      "required": true
    }
  ],
  "x-required-scopes": [
    "runtime:control"
  ],
  "responses": {
    "200": {
      "description": "Default Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "id",
              "profile_id",
              "source_session_id",
              "generation",
              "requester_id",
              "target_member_id",
              "mode",
              "force",
              "state",
              "final_version",
              "error",
              "phase",
              "can_cancel",
              "can_retry"
            ],
            "properties": {
              "requester_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_device_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "profile_id": {
                "type": "string"
              },
              "source_session_id": {
                "type": "string"
              },
              "generation": {
                "type": "integer"
              },
              "requester_id": {
                "type": "string"
              },
              "target_member_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "takeover"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "close"
                    ]
                  }
                ]
              },
              "force": {
                "type": "boolean"
              },
              "state": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "requested"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "awaiting_approval"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "accepted"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "stopping"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "syncing"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "failed"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "reserved"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "completed"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "cancelled"
                    ]
                  }
                ]
              },
              "final_version": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "target_session": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "profile_id",
                      "member_id",
                      "base_version",
                      "expires_at",
                      "device_id",
                      "device_name",
                      "purpose",
                      "acquired_at",
                      "renewed_at",
                      "generation",
                      "phase",
                      "kernel_started",
                      "start_id",
                      "last_seen_at",
                      "kernel",
                      "termination",
                      "final_version",
                      "revoked"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "profile_id": {
                        "type": "string"
                      },
                      "member_id": {
                        "type": "string"
                      },
                      "base_version": {
                        "type": "integer"
                      },
                      "expires_at": {
                        "type": "integer"
                      },
                      "device_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "device_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "purpose": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "runtime"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "publish"
                                ]
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "acquired_at": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "renewed_at": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "generation": {
                        "type": "integer"
                      },
                      "phase": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "preparing"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "reserved"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "running"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "stopping"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "stopped"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "syncing"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "sync_failed"
                            ]
                          },
                          {
                            "type": "string",
                            "enum": [
                              "recovery_required"
                            ]
                          }
                        ]
                      },
                      "kernel_started": {
                        "type": "boolean"
                      },
                      "start_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_seen_at": {
                        "type": "integer"
                      },
                      "kernel": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "engine",
                              "build"
                            ],
                            "properties": {
                              "engine": {
                                "type": "string"
                              },
                              "build": {
                                "type": "string"
                              }
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "termination": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "start_id",
                              "tree_empty",
                              "end_kind",
                              "cookies_preserved"
                            ],
                            "properties": {
                              "start_id": {
                                "type": "string"
                              },
                              "tree_empty": {
                                "type": "boolean"
                              },
                              "end_kind": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "clean"
                                    ]
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "forced"
                                    ]
                                  },
                                  {
                                    "type": "string",
                                    "enum": [
                                      "crashed"
                                    ]
                                  }
                                ]
                              },
                              "cookies_preserved": {
                                "type": "boolean"
                              }
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "final_version": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "revoked": {
                        "type": "boolean"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "can_approve": {
                "type": "boolean"
              },
              "hard_end": {
                "type": "boolean"
              },
              "created_at": {
                "type": "integer"
              },
              "updated_at": {
                "type": "integer"
              },
              "error": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "code",
                      "message"
                    ],
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notices": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "phase": {
                "type": "string"
              },
              "server_state": {
                "type": "string"
              },
              "target_error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "stage",
                  "recovery_required",
                  "target_session_id",
                  "generation",
                  "observed_at"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "stage": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "preflight"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "download"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "import"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "start"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "ack"
                        ]
                      }
                    ]
                  },
                  "recovery_required": {
                    "type": "boolean"
                  },
                  "target_session_id": {
                    "type": "string"
                  },
                  "generation": {
                    "type": "integer"
                  },
                  "observed_at": {
                    "type": "integer"
                  }
                }
              },
              "can_cancel": {
                "type": "boolean"
              },
              "can_retry": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "default": {
      "description": "HTTP error envelope. The status and error.code identify the failure.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}

Suche nach Headless, MCP, Cookies oder einem API-Endpunkt.

↑ ↓ NavigierenEnter ÖffnenEsc Schließen