---
title: "POST /v1/mission/update"
method: POST
path: "/v1/mission/update"
tags: ["Mission"]
---

# POST /v1/mission/update

`POST /v1/mission/update`

## Request

- Base URL: `https://api.bearrobotics.ai`
- URL: `https://api.bearrobotics.ai/v1/mission/update`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bearrobotics/apis/bear-cloud-api/docs/v1/mission/update/post.ts> (a function with typed inputs; its response is checked against the schema)

Issue a command to control or update the current mission (e.g., pause,
 cancel).

 This call will fail if:
 - The robot is not on the specified mission.
 - The command is invalid for the robot's current state.

## Request body

- UpdateMissionRequest: Request object for updating a mission
  - `robotId` string, required: Unique identifier of the robot
  - `missionCommand` object, required
    - `missionId` string, required: ID of the mission to control
    - `command` integer, required: The command to execute on the mission

## Response `200`

OK

- UpdateMissionResponse

## Other responses

- `400`: Bad Request, usually caused by malfored request body.
- `401`: Unauthorized credentials, ensure the JWT is correct and up to date.
- `500`: Internal Server Error
- `503`: Service is temporarily unavailable, which can usually be resolved by backoff retries.
- `504`: Server-side timeout, usually caused by the failure to send/receive commands/responses to the designated robot.

---

[API](https://skmtc.dev/bearrobotics/apis/bear-cloud-api.md) - [All operations](https://skmtc.dev/bearrobotics/apis/bear-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bearrobotics/apis/bear-cloud-api/revisions/b90843b624b5?raw)
