Skip to main content
PUT
Update Session

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

slug
string
required

Session identifier, as sent when it was dispatched.

Body

application/json

Partial update for a session. Only sent fields are applied.

company_slug
string | null

Move the session to another company you can manage.

Response

Session updated. Returns the updated session.

Full session detail response (includes routes + operations).

slug
string
required

Session identifier.

company_slug
string
required

Owning company.

created_at
string<date-time>
required

When the session was dispatched.

updated_at
string<date-time> | null

Last update, if any.

routes
RoutePublic · object[]

Routes with their drivers and operations.