Skip to main content
POST
/
repos
/
{repo_id}
/
workspaces
/
{workspace_id}
/
set_auto_forwarding
Set auto-forwarding status
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/workspaces/{workspace_id}/set_auto_forwarding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ws_auto_forwarding_status": "enabled"
}
'
{
  "status": 123,
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

workspace_id
string
required

The repo ID of the workspace.

Required string length: 3 - 128
Example:

"example_id"

Body

application/json

Set whether a workspace will automatically advance to the latest commit when its branch receives new commits.

ws_auto_forwarding_status
enum<string>
required

workspace auto-forwarding status

Available options:
enabled,
disabled

Response

Request completed successfully