Skip to content

Switch the caller's session to a branch (git checkout)

POST
/api/workspaces/{workspaceId}/repo/checkout
workspaceId
required
string
object
branch
required
string
>= 1 characters <= 200 characters
create
boolean

Successful response

object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
Example
Operation completed
error
string
Example
Error message

Invalid request

object
success
boolean
error
string
Example
Error message

Internal server error

object
success
boolean
error
string
Example
Error message