Operations
Create operations
Create one or several operations based on the sent scope and objectives.
Currently available operation types: execute_microservice, delete_workspaces, shutdown_workspaces, and restart_workspaces.
Parameter compatibility for execute_microservice
payload.parameters only applies to PowerShell microservices 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 parameter definition and parsing implemented in the microservice script.
For this context, recommended parameter data types:
string,integer,double,decimal, anddatetime.- For
doubleanddecimal, use decimal point notation (.). - For
datetime, use ISO 8601 format (e.g.,2026-07-09T10:30:00Z). - On execution at the destination,
datetimevalues may be represented in local time. - Correct execution also depends on the quality and validations of the script.
POST
/
v1
/
organizations
/
{organization_id}
/
operations
curl --request POST \
--url https://api.flexxible.net/v1/organizations/{organization_id}/operations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "execute_microservice",
"target": {
"type": "workspaces",
"ids": [
"507f1f77bcf86cd799439011",
"507f1f77bcf86cd799439012"
]
},
"expiration_in_seconds": 600,
"payload": {
"microservice_id": "507f1f77bcf86cd799439015",
"parameters": {
"mode": "safe"
}
}
}
'
{
"ids": [
{
"organization_id": "507f1f77bcf86cd799439011",
"operation_id": "507f1f77bcf86cd799439031"
}
]
}{
"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
Path Parameters
Body
application/json
⌘I
curl --request POST \
--url https://api.flexxible.net/v1/organizations/{organization_id}/operations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "execute_microservice",
"target": {
"type": "workspaces",
"ids": [
"507f1f77bcf86cd799439011",
"507f1f77bcf86cd799439012"
]
},
"expiration_in_seconds": 600,
"payload": {
"microservice_id": "507f1f77bcf86cd799439015",
"parameters": {
"mode": "safe"
}
}
}
'
{
"ids": [
{
"organization_id": "507f1f77bcf86cd799439011",
"operation_id": "507f1f77bcf86cd799439031"
}
]
}{
"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>"
}
}