POST
/
vehicles
/
{id}
/
security
curl "https://api.smartcar.com/v2.0/vehicles/{id}/security" \
    -H "Authorization: Bearer {token}" \
    -X "POST" \
    -H "Content-Type: application/json" \
    -d '{"action": "LOCK"}'
{
    "message": "Successfully sent request to vehicle",
    "status": "success"
}   

Permission

control_security

Request

Path
id
string
required
The vehicle ID of the vehicle you are making a request to.
Body
action
string
required
LOCK or UNLOCK the vehicle’s doors.

Response

status
string
If the request is successful, Smartcar will return “success” (HTTP 200 status).
message
string
If the request is successful, Smartcar will return a message (HTTP 200 status).