# /api/vehicle/doors/command

## Status

- Latest Version: v1.2.0
- Method: function call
- Data Type: [autoware\_adapi\_v1\_msgs/srv/SetDoorCommand](<../../../../../types/autoware_adapi_v1_msgs/srv/SetDoorCommand/index.md>)

## Description

Set the door command. This API is only available if the vehicle supports software door control. This API fails if the doors cannot be opened or closed safely. The default implementation rejects all commands when vehicle control by Autoware is disabled. The `check_autoware_control` parameter turns this check on, and it is true by default. The default implementation also rejects a command that opens a door when the operation mode is not stop.

## Request

| Name | Type | Description |
| --- | --- | --- |
| doors.index | uint32 | The index of the target door. |
| doors.command | uint8 | The command for the target door. |

## Response

| Name | Type | Description |
| --- | --- | --- |
| status | autoware\_adapi\_v1\_msgs/msg/ResponseStatus | response status |
