Skip to main content
POST
Complete Operation

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Path Parameters

route_id
integer
required

Route ID, from the session detail or the route list.

op_id
integer
required

Operation ID, from the route's operations.

Response

Operation completed. Returns the updated operation and any side-effect operations.

Response for completing an operation, includes any side-effect operations.

operation
OperationPublic · object
required

The completed operation.

Example:
side_effects
OperationPublic · object[]

Operations added or changed as a consequence, e.g. the start_charge added after a recharge_pickup, or the next end_charge moved to the charging location of a start_charge.