Skip to content

Workspace sync

Update workspace fork exclusions

Include or exclude selected workflows from fork sync with workspace Admin access. Excluded workflows are skipped as sources and targets. Missing, archived, and unchanged workflow IDs are skipped. Billing-enabled deployments require Enterprise. Billing-disabled deployments require forking to be enabled by deployment feature configuration, such as `FORKING_ENABLED`. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:write`.

PUT/api/v2/workspaces/{workspaceId}/fork/exclusions

Include or exclude selected workflows from fork sync with workspace Admin access. Excluded workflows are skipped as sources and targets. Missing, archived, and unchanged workflow IDs are skipped. Billing-enabled deployments require Enterprise. Billing-disabled deployments require forking to be enabled by deployment feature configuration, such as FORKING_ENABLED. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:write.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:write

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:write.

Path parameters

workspaceIdstringRequired

Explicit current workspace scope.

minLength
1
maxLength
128

Request body

Required

Workflow IDs and whether to exclude them from sync.

object

Workflow IDs and whether to exclude them from sync.

2 fields
workflowIdsarrayRequired

Workflow identifiers in the current workspace.

minItems
1
maxItems
1000
Schema details
Array itemstring
minLength
1
forkSyncExcludedbooleanRequired

Whether the named workflows should be skipped as sync sources and targets.

Additional properties are not allowed.

Responses

200

Number of workflow exclusion flags changed.

object

Number of workflow exclusion flags changed.

1 field
dataobjectRequired

Response data.

1 field
updatedintegerRequired

Number of records changed.

minimum
0
maximum
9007199254740991

Additional properties are not allowed.

Additional properties are not allowed.

Was this helpful?
Suggest an edit