Create operations
Creates one or more operations based on the submitted scope and targets.
Currently available operation types: execute_microservice, delete_workspaces, force_update_custom_fields, shutdown_workspaces, restart_workspaces, suspend_workspaces, power_off_workspaces, force_restart_workspaces, wake_on_lan_workspaces, send_popup, send_flexxible_notification, send_entra_id_group_notification, disconnect_sessions, logoff_sessions, force_logoff_sessions, collect_agent_logs, install_intel_ema_agent, change_reporting_group, windows_service_action and close_notification, get_installed_patches, get_pending_patches and get_plug_and_play_devices.
Returns the created operation resources with the same canonical contract used when querying by id.
Partial execution
Operations are created only for eligible targets. Ineligible targets do not block the request: they are returned in not_supported_devices, grouped by reason. If all targets are omitted, the response is still 201 with empty data. Organization authorization failures and global request validations return 4xx and create no operations.
Supported targets by type
sessionsonly:disconnect_sessions,logoff_sessionsandforce_logoff_sessions.workspacesorsessions:execute_microservice,send_popupandsend_flexxible_notification.entra_id_groupsonly:send_entra_id_group_notification.workspacesonly: all other types.windows_service_actionsupports exactly one target per request.
payload content by type
payload is an object whose content depends on type. Fields not supported for the submitted type are rejected with 400. See the request examples for each full shape.
execute_microservice:microservice_id(required) andparameters(optional).shutdown_workspacesandrestart_workspaces:scheduled_at(optional).wake_on_lan_workspaces:intermediate_workspace_id(required). Must be a connected Workspace acting as intermediary.send_popup:message(required).send_flexxible_notification:message,start_date,end_date,level_type(informative,maintenanceorissue),blink,ask_for_acknowledgement,disable_minimizeandtimezone(required);tooltipandlink(optional).send_entra_id_group_notification: samepayloadassend_flexxible_notification. Thetargetis{ type: "entra_id_groups", tenant_id, group_names }(1..100 names). No public listing endpoint; unknown tenant or group →422.collect_agent_logs:start_time(required);end_timeandfilter_files(optional).install_intel_ema_agent: emptypayload{}(or omitted). Requires Intel VPro enabled in the organization.change_reporting_group:reporting_group_id(required). The request is rejected when it exceeds 100 unsuitable Workspaces.windows_service_action:action(start,stoporrestart) andservices_name(required). TheFlexxAgent servicecannot be stopped or restarted.delete_workspaces,force_update_custom_fields,suspend_workspaces,power_off_workspaces,force_restart_workspaces,disconnect_sessions,logoff_sessionsandforce_logoff_sessions: do not supportpayload.
Parameter compatibility for execute_microservice
payload.parameters only applies to PowerShell microservice executions on Windows and is only supported on devices with the new agent installed.
Values sent in payload.parameters are transmitted as text (string). Type interpretation depends on the parameter definition and the parsing implemented in the microservice script.
For that context, recommended parameter data types:
string,integer,double,decimalanddatetime.- For
doubleanddecimal, use decimal point notation (.). - For
datetime, use ISO 8601 format (for example:2026-07-09T10:30:00Z). - When executed on the target,
datetimevalues may be represented in local time. - Successful execution also depends on the quality and validations of the script.
curl --request POST \
--url https://api.flexxible.net/v2/organizations/{organization_id}/operations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "execute_microservice",
"target": {
"type": "workspaces",
"ids": [
"6650f1c2a1b2c3d4e5f60011"
]
},
"expiration_in_seconds": 1200,
"payload": {
"microservice_id": "6650f1c2a1b2c3d4e5f60022",
"parameters": {
"mode": "safe",
"retries": "3"
}
}
}
'{
"data": [
{
"id": "6650f1c2a1b2c3d4e5f60055",
"name": "Restart workspaces",
"organization_id": "6650f1c2a1b2c3d4e5f60001",
"description": "",
"status": "pending",
"created_at": "2026-08-19T09:30:00.000Z",
"started_at": null,
"ended_at": null,
"microservice_id": null,
"flow_id": null,
"remote_support": null
}
],
"not_supported_devices": [
{
"reason": "not_connected",
"targets": [
{
"workspace_id": "6650f1c2a1b2c3d4e5f60012"
}
]
}
]
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}Authorizations
Body
execute_microservice, delete_workspaces, force_update_custom_fields, shutdown_workspaces, restart_workspaces, suspend_workspaces, power_off_workspaces, force_restart_workspaces, wake_on_lan_workspaces, send_popup, send_flexxible_notification, send_entra_id_group_notification, disconnect_sessions, logoff_sessions, force_logoff_sessions, collect_agent_logs, install_intel_ema_agent, update_flexx_agent, change_reporting_group, windows_service_action, close_notification, get_installed_patches, get_pending_patches, get_plug_and_play_devices curl --request POST \
--url https://api.flexxible.net/v2/organizations/{organization_id}/operations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "execute_microservice",
"target": {
"type": "workspaces",
"ids": [
"6650f1c2a1b2c3d4e5f60011"
]
},
"expiration_in_seconds": 1200,
"payload": {
"microservice_id": "6650f1c2a1b2c3d4e5f60022",
"parameters": {
"mode": "safe",
"retries": "3"
}
}
}
'{
"data": [
{
"id": "6650f1c2a1b2c3d4e5f60055",
"name": "Restart workspaces",
"organization_id": "6650f1c2a1b2c3d4e5f60001",
"description": "",
"status": "pending",
"created_at": "2026-08-19T09:30:00.000Z",
"started_at": null,
"ended_at": null,
"microservice_id": null,
"flow_id": null,
"remote_support": null
}
],
"not_supported_devices": [
{
"reason": "not_connected",
"targets": [
{
"workspace_id": "6650f1c2a1b2c3d4e5f60012"
}
]
}
]
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<string>"
}
}