Skip to content

Workspace sync

Rollback workspace fork

Restore the latest sync into this workspace from the named other workspace using prior deployed versions. Requires target workspace Admin access. A newer sync from another fork edge returns `409`. Arbitrary draft edits and copied resources are not restored or removed. Inspect `pendingActivations`; retry rollback if activation remains unfinished. 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`.

POST/api/v2/workspaces/{workspaceId}/fork/rollback

Restore the latest sync into this workspace from the named other workspace using prior deployed versions. Requires target workspace Admin access. A newer sync from another fork edge returns 409. Arbitrary draft edits and copied resources are not restored or removed. Inspect pendingActivations; retry rollback if activation remains unfinished. 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

Other workspace whose latest inbound sync should be undone.

object

Other workspace whose latest inbound sync should be undone.

1 field
otherWorkspaceIdstringRequired

Workspace on the other side of the direct fork edge.

minLength
1
maxLength
128

Additional properties are not allowed.

Responses

200

Restored, archived, skipped, and still-activating workflow counts.

object

Restored, archived, skipped, and still-activating workflow counts.

1 field
dataobjectRequired

Response data.

5 fields
restoredintegerRequired

Workflows restored to their prior deployed version.

minimum
0
maximum
9007199254740991
archivedintegerRequired

Workflows created by the sync and now archived.

minimum
0
maximum
9007199254740991
unarchivedintegerRequired

Previously archived workflows restored by rollback.

minimum
0
maximum
9007199254740991
skippedintegerRequired

Snapshot workflows no longer available to restore.

minimum
0
maximum
9007199254740991
pendingActivationsarrayRequired

Workflows whose restored deployment is still activating.

maxItems
1000
Schema details
Array itemstring
maxLength
256

Additional properties are not allowed.

Additional properties are not allowed.

Was this helpful?
Suggest an edit