curl --request DELETE \
--url 'https://api.widgetic.com/v1/workspaces/7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f/workflows/123e4567-e89b-12d3-a456-426614174000/managed-user' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"import { WorkflowsApi } from '@widgetic/api-sdk-ts';
const workflowsApi = new WorkflowsApi(process.env.WIDGETIC_API_KEY!);
const result = await workflowsApi.removeWorkspaceWorkflowManagedUser({
workspaceId: '7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
workflowId: '123e4567-e89b-12d3-a456-426614174000',
});
console.log(result);import os
import api_sdk_py
configuration = api_sdk_py.Configuration(access_token=os.environ["WIDGETIC_API_KEY"])
with api_sdk_py.ApiClient(configuration) as api_client:
workflows_api = api_sdk_py.WorkflowsApi(api_client)
result = workflows_api.remove_workspace_workflow_managed_user(
workspace_id="7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f",
workflow_id="123e4567-e89b-12d3-a456-426614174000",
)
print(result)package main
import (
"context"
"fmt"
"os"
widgetic "github.com/widgetic/api-sdk-go"
)
func main() {
ctx := context.WithValue(context.Background(), widgetic.ContextAccessToken, os.Getenv("WIDGETIC_API_KEY"))
client := widgetic.NewAPIClient(widgetic.NewConfiguration())
result, _, err := client.WorkflowsAPI.RemoveWorkspaceWorkflowManagedUser(ctx, "7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f", "123e4567-e89b-12d3-a456-426614174000").Execute()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(result)
}import com.widgetic.api.ApiClient;
import com.widgetic.api.ApiException;
import com.widgetic.api.Configuration;
import com.widgetic.api.api.WorkflowsApi;
import java.util.UUID;
public class Example {
public static void main(String[] args) throws ApiException {
ApiClient client = Configuration.getDefaultApiClient();
client.setBearerToken(System.getenv("WIDGETIC_API_KEY"));
WorkflowsApi workflowsApi = new WorkflowsApi(client);
var result = workflowsApi.removeWorkspaceWorkflowManagedUser(
UUID.fromString("7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f"),
UUID.fromString("123e4567-e89b-12d3-a456-426614174000")
);
System.out.println(result);
}
}using System;
using Widgetic.ApiSdk.Cs.Api;
using Widgetic.ApiSdk.Cs.Client;
var configuration = new Configuration
{
AccessToken = Environment.GetEnvironmentVariable("WIDGETIC_API_KEY")!,
};
var workflowsApi = new WorkflowsApi(configuration);
var result = workflowsApi.RemoveWorkspaceWorkflowManagedUser(
workspaceId: Guid.Parse("7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f"),
workflowId: Guid.Parse("123e4567-e89b-12d3-a456-426614174000")
);
Console.WriteLine(result);require 'api-sdk-rb'
ApiSdkRb.configure do |config|
config.access_token = ENV['WIDGETIC_API_KEY']
end
workflows_api = ApiSdkRb::WorkflowsApi.new
result = workflows_api.remove_workspace_workflow_managed_user(
'7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
'123e4567-e89b-12d3-a456-426614174000'
)
puts result<?php
require_once __DIR__ . '/vendor/autoload.php';
use WidgeticApi\Api\WorkflowsApi;
use WidgeticApi\Configuration;
$config = Configuration::getDefaultConfiguration()->setAccessToken(getenv('WIDGETIC_API_KEY'));
$workflowsApi = new WorkflowsApi(new GuzzleHttp\Client(), $config);
$result = $workflowsApi->removeWorkspaceWorkflowManagedUser(
workspace_id: '7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
workflow_id: '123e4567-e89b-12d3-a456-426614174000',
);
print_r($result);{
"success": true,
"data": {
"id": "7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f",
"managedUserId": "123e4567-e89b-12d3-a456-426614174000"
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}Remove a workflow's managed user
Takes a workflow of your partner workspace off the managed user it is filed under, so it is your own again. The
workflow’s blocks, versions, state and counts stay as they were (only updatedAt moves), and the compositions it
chains stay with the managed users they are filed under. A workflow that is filed under no one answers the same, so a retry is safe. Your own
workflows count toward the 500 a workspace can hold; one that would go over that is refused (422).
Only with your own API key, in your partner workspace: a call made for one managed user (an editor session, or the
X-Managed-User-Id header) is refused with 403, and so is a workspace that is not your partner workspace. The
API key needs the partner:write and content:write scopes, and the plan must include workflows.
curl --request DELETE \
--url 'https://api.widgetic.com/v1/workspaces/7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f/workflows/123e4567-e89b-12d3-a456-426614174000/managed-user' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"import { WorkflowsApi } from '@widgetic/api-sdk-ts';
const workflowsApi = new WorkflowsApi(process.env.WIDGETIC_API_KEY!);
const result = await workflowsApi.removeWorkspaceWorkflowManagedUser({
workspaceId: '7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
workflowId: '123e4567-e89b-12d3-a456-426614174000',
});
console.log(result);import os
import api_sdk_py
configuration = api_sdk_py.Configuration(access_token=os.environ["WIDGETIC_API_KEY"])
with api_sdk_py.ApiClient(configuration) as api_client:
workflows_api = api_sdk_py.WorkflowsApi(api_client)
result = workflows_api.remove_workspace_workflow_managed_user(
workspace_id="7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f",
workflow_id="123e4567-e89b-12d3-a456-426614174000",
)
print(result)package main
import (
"context"
"fmt"
"os"
widgetic "github.com/widgetic/api-sdk-go"
)
func main() {
ctx := context.WithValue(context.Background(), widgetic.ContextAccessToken, os.Getenv("WIDGETIC_API_KEY"))
client := widgetic.NewAPIClient(widgetic.NewConfiguration())
result, _, err := client.WorkflowsAPI.RemoveWorkspaceWorkflowManagedUser(ctx, "7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f", "123e4567-e89b-12d3-a456-426614174000").Execute()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(result)
}import com.widgetic.api.ApiClient;
import com.widgetic.api.ApiException;
import com.widgetic.api.Configuration;
import com.widgetic.api.api.WorkflowsApi;
import java.util.UUID;
public class Example {
public static void main(String[] args) throws ApiException {
ApiClient client = Configuration.getDefaultApiClient();
client.setBearerToken(System.getenv("WIDGETIC_API_KEY"));
WorkflowsApi workflowsApi = new WorkflowsApi(client);
var result = workflowsApi.removeWorkspaceWorkflowManagedUser(
UUID.fromString("7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f"),
UUID.fromString("123e4567-e89b-12d3-a456-426614174000")
);
System.out.println(result);
}
}using System;
using Widgetic.ApiSdk.Cs.Api;
using Widgetic.ApiSdk.Cs.Client;
var configuration = new Configuration
{
AccessToken = Environment.GetEnvironmentVariable("WIDGETIC_API_KEY")!,
};
var workflowsApi = new WorkflowsApi(configuration);
var result = workflowsApi.RemoveWorkspaceWorkflowManagedUser(
workspaceId: Guid.Parse("7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f"),
workflowId: Guid.Parse("123e4567-e89b-12d3-a456-426614174000")
);
Console.WriteLine(result);require 'api-sdk-rb'
ApiSdkRb.configure do |config|
config.access_token = ENV['WIDGETIC_API_KEY']
end
workflows_api = ApiSdkRb::WorkflowsApi.new
result = workflows_api.remove_workspace_workflow_managed_user(
'7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
'123e4567-e89b-12d3-a456-426614174000'
)
puts result<?php
require_once __DIR__ . '/vendor/autoload.php';
use WidgeticApi\Api\WorkflowsApi;
use WidgeticApi\Configuration;
$config = Configuration::getDefaultConfiguration()->setAccessToken(getenv('WIDGETIC_API_KEY'));
$workflowsApi = new WorkflowsApi(new GuzzleHttp\Client(), $config);
$result = $workflowsApi->removeWorkspaceWorkflowManagedUser(
workspace_id: '7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f',
workflow_id: '123e4567-e89b-12d3-a456-426614174000',
);
print_r($result);{
"success": true,
"data": {
"id": "7d0b4c1a-2f6e-4f3a-9b1c-5e8a3d2c1b0f",
"managedUserId": "123e4567-e89b-12d3-a456-426614174000"
},
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}Authorizations
Path Parameters
The workspace: the UUID of a workspace you belong to. A call made for one of your managed users
(X-Managed-User-Id, or an editor session) always names your partner workspace, the one an editor session
answers with (workspaceId): a managed user has no workspace of their own, and the id of any other workspace is
answered 404 (RESOURCE_WORKSPACE_NOT_FOUND).
Response
The workflow is filed under no managed user (managedUserId is null)