Create a flow
Creates a new automation flow for the specified organization. The flow defines execution logic, conditions, and target workspaces. Returns data of the created flow upon successful creation.
curl --request POST \
--url https://api.flexxible.net/v2/organizations/{organization_id}/flows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": {
"en-EN": "Daily Backup Flow",
"es-ES": "Proceso de copia diaria"
},
"description": {
"en-EN": "Automated daily backup process",
"es-ES": "Proceso automatizado de copia de seguridad diaria"
},
"type": "workspace",
"detection_only": false,
"cooldown_minutes": 60,
"enabled": false,
"init_text": {
"en-EN": "Starting backup process...",
"es-ES": "Iniciando proceso de copia..."
},
"ok_text": {
"en-EN": "Backup completed successfully",
"es-ES": "Copia completada correctamente"
},
"ko_text": {
"en-EN": "Backup failed. Please check logs.",
"es-ES": "Copia fallida. Revise los registros."
},
"target": {
"type": "workspaces",
"ids": [
"507f1f77bcf86cd799439012",
"507f1f77bcf86cd799439013"
]
},
"microservice_id": "507f1f77bcf86cd799439014",
"conditions": [
{
"condition_type_id": "507f1f77bcf86cd799439015",
"operator": "gt",
"compare_to": "80",
"check_every": 300
}
]
}
'import requests
url = "https://api.flexxible.net/v2/organizations/{organization_id}/flows"
payload = {
"name": {
"en-EN": "Daily Backup Flow",
"es-ES": "Proceso de copia diaria"
},
"description": {
"en-EN": "Automated daily backup process",
"es-ES": "Proceso automatizado de copia de seguridad diaria"
},
"type": "workspace",
"detection_only": False,
"cooldown_minutes": 60,
"enabled": False,
"init_text": {
"en-EN": "Starting backup process...",
"es-ES": "Iniciando proceso de copia..."
},
"ok_text": {
"en-EN": "Backup completed successfully",
"es-ES": "Copia completada correctamente"
},
"ko_text": {
"en-EN": "Backup failed. Please check logs.",
"es-ES": "Copia fallida. Revise los registros."
},
"target": {
"type": "workspaces",
"ids": ["507f1f77bcf86cd799439012", "507f1f77bcf86cd799439013"]
},
"microservice_id": "507f1f77bcf86cd799439014",
"conditions": [
{
"condition_type_id": "507f1f77bcf86cd799439015",
"operator": "gt",
"compare_to": "80",
"check_every": 300
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: {'en-EN': 'Daily Backup Flow', 'es-ES': 'Proceso de copia diaria'},
description: {
'en-EN': 'Automated daily backup process',
'es-ES': 'Proceso automatizado de copia de seguridad diaria'
},
type: 'workspace',
detection_only: false,
cooldown_minutes: 60,
enabled: false,
init_text: {
'en-EN': 'Starting backup process...',
'es-ES': 'Iniciando proceso de copia...'
},
ok_text: {
'en-EN': 'Backup completed successfully',
'es-ES': 'Copia completada correctamente'
},
ko_text: {
'en-EN': 'Backup failed. Please check logs.',
'es-ES': 'Copia fallida. Revise los registros.'
},
target: {
type: 'workspaces',
ids: ['507f1f77bcf86cd799439012', '507f1f77bcf86cd799439013']
},
microservice_id: '507f1f77bcf86cd799439014',
conditions: [
{
condition_type_id: '507f1f77bcf86cd799439015',
operator: 'gt',
compare_to: '80',
check_every: 300
}
]
})
};
fetch('https://api.flexxible.net/v2/organizations/{organization_id}/flows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flexxible.net/v2/organizations/{organization_id}/flows",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => [
'en-EN' => 'Daily Backup Flow',
'es-ES' => 'Proceso de copia diaria'
],
'description' => [
'en-EN' => 'Automated daily backup process',
'es-ES' => 'Proceso automatizado de copia de seguridad diaria'
],
'type' => 'workspace',
'detection_only' => false,
'cooldown_minutes' => 60,
'enabled' => false,
'init_text' => [
'en-EN' => 'Starting backup process...',
'es-ES' => 'Iniciando proceso de copia...'
],
'ok_text' => [
'en-EN' => 'Backup completed successfully',
'es-ES' => 'Copia completada correctamente'
],
'ko_text' => [
'en-EN' => 'Backup failed. Please check logs.',
'es-ES' => 'Copia fallida. Revise los registros.'
],
'target' => [
'type' => 'workspaces',
'ids' => [
'507f1f77bcf86cd799439012',
'507f1f77bcf86cd799439013'
]
],
'microservice_id' => '507f1f77bcf86cd799439014',
'conditions' => [
[
'condition_type_id' => '507f1f77bcf86cd799439015',
'operator' => 'gt',
'compare_to' => '80',
'check_every' => 300
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flexxible.net/v2/organizations/{organization_id}/flows"
payload := strings.NewReader("{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flexxible.net/v2/organizations/{organization_id}/flows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flexxible.net/v2/organizations/{organization_id}/flows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "507f1f77bcf86cd799439011"
}{
"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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Language code for text fields supporting multiple languages. When creating or updating resources, this specifies the language for the provided text values. When retrieving resources, this determines which language variant the multilingual text fields return. Accepted values: 'en-EN' (English), 'es-ES' (Spanish), 'pt-BR' (Portuguese), 'ca-ES' (Catalan), 'eu-ES' (Basque). The default is 'es-ES' if not provided.
en-EN, es-ES, pt-BR, ca-ES, eu-ES Path Parameters
The unique identifier of the organization
24^[0-9a-f]{24}$Body
Flow name. Requires at least one language key; each value must be between 1 and 512 characters.
Show child attributes
Show child attributes
Flow description. Requires at least one language key; each value must be between 1 and 512 characters.
Show child attributes
Show child attributes
session, workspace Waiting time in minutes. Must be between 10 and 1440.
10 <= x <= 1440Show child attributes
Show child attributes
24^[0-9a-f]{24}$Show child attributes
Show child attributes
If true, the flow is enabled upon creation (requires valid conditions, microservice, and target). If omitted or false, a disabled flow is created.
Initial text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Show child attributes
Show child attributes
Success text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Show child attributes
Show child attributes
Error text message. Omitted if not needed. When provided, requires at least one language key; each value must be between 1 and 512 characters.
Show child attributes
Show child attributes
Response
Flow successfully created. The response contains the created resource.
Flow details as returned by GET flow by id. The organization is implied by the path /v2/organizations/{organization_id}/flows/{flow_id}. Target workspaces/groups are normalized in target.ids (MongoDB ObjectId hexadecimal strings).
24^[0-9a-f]{24}$Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
session, workspace Waiting time in minutes
Execution destination: type selects the scope; ids list Workspace _id values, Workspace group _id values, or Reporting Group _id (empty when type is ALL_WORKSPACES)
Show child attributes
Show child attributes
Omitted or empty when the flow has no conditions
Show child attributes
Show child attributes
Linked microservice ID when present
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Present when metrics are calculated for this flow
Show child attributes
Show child attributes
curl --request POST \
--url https://api.flexxible.net/v2/organizations/{organization_id}/flows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": {
"en-EN": "Daily Backup Flow",
"es-ES": "Proceso de copia diaria"
},
"description": {
"en-EN": "Automated daily backup process",
"es-ES": "Proceso automatizado de copia de seguridad diaria"
},
"type": "workspace",
"detection_only": false,
"cooldown_minutes": 60,
"enabled": false,
"init_text": {
"en-EN": "Starting backup process...",
"es-ES": "Iniciando proceso de copia..."
},
"ok_text": {
"en-EN": "Backup completed successfully",
"es-ES": "Copia completada correctamente"
},
"ko_text": {
"en-EN": "Backup failed. Please check logs.",
"es-ES": "Copia fallida. Revise los registros."
},
"target": {
"type": "workspaces",
"ids": [
"507f1f77bcf86cd799439012",
"507f1f77bcf86cd799439013"
]
},
"microservice_id": "507f1f77bcf86cd799439014",
"conditions": [
{
"condition_type_id": "507f1f77bcf86cd799439015",
"operator": "gt",
"compare_to": "80",
"check_every": 300
}
]
}
'import requests
url = "https://api.flexxible.net/v2/organizations/{organization_id}/flows"
payload = {
"name": {
"en-EN": "Daily Backup Flow",
"es-ES": "Proceso de copia diaria"
},
"description": {
"en-EN": "Automated daily backup process",
"es-ES": "Proceso automatizado de copia de seguridad diaria"
},
"type": "workspace",
"detection_only": False,
"cooldown_minutes": 60,
"enabled": False,
"init_text": {
"en-EN": "Starting backup process...",
"es-ES": "Iniciando proceso de copia..."
},
"ok_text": {
"en-EN": "Backup completed successfully",
"es-ES": "Copia completada correctamente"
},
"ko_text": {
"en-EN": "Backup failed. Please check logs.",
"es-ES": "Copia fallida. Revise los registros."
},
"target": {
"type": "workspaces",
"ids": ["507f1f77bcf86cd799439012", "507f1f77bcf86cd799439013"]
},
"microservice_id": "507f1f77bcf86cd799439014",
"conditions": [
{
"condition_type_id": "507f1f77bcf86cd799439015",
"operator": "gt",
"compare_to": "80",
"check_every": 300
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: {'en-EN': 'Daily Backup Flow', 'es-ES': 'Proceso de copia diaria'},
description: {
'en-EN': 'Automated daily backup process',
'es-ES': 'Proceso automatizado de copia de seguridad diaria'
},
type: 'workspace',
detection_only: false,
cooldown_minutes: 60,
enabled: false,
init_text: {
'en-EN': 'Starting backup process...',
'es-ES': 'Iniciando proceso de copia...'
},
ok_text: {
'en-EN': 'Backup completed successfully',
'es-ES': 'Copia completada correctamente'
},
ko_text: {
'en-EN': 'Backup failed. Please check logs.',
'es-ES': 'Copia fallida. Revise los registros.'
},
target: {
type: 'workspaces',
ids: ['507f1f77bcf86cd799439012', '507f1f77bcf86cd799439013']
},
microservice_id: '507f1f77bcf86cd799439014',
conditions: [
{
condition_type_id: '507f1f77bcf86cd799439015',
operator: 'gt',
compare_to: '80',
check_every: 300
}
]
})
};
fetch('https://api.flexxible.net/v2/organizations/{organization_id}/flows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flexxible.net/v2/organizations/{organization_id}/flows",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => [
'en-EN' => 'Daily Backup Flow',
'es-ES' => 'Proceso de copia diaria'
],
'description' => [
'en-EN' => 'Automated daily backup process',
'es-ES' => 'Proceso automatizado de copia de seguridad diaria'
],
'type' => 'workspace',
'detection_only' => false,
'cooldown_minutes' => 60,
'enabled' => false,
'init_text' => [
'en-EN' => 'Starting backup process...',
'es-ES' => 'Iniciando proceso de copia...'
],
'ok_text' => [
'en-EN' => 'Backup completed successfully',
'es-ES' => 'Copia completada correctamente'
],
'ko_text' => [
'en-EN' => 'Backup failed. Please check logs.',
'es-ES' => 'Copia fallida. Revise los registros.'
],
'target' => [
'type' => 'workspaces',
'ids' => [
'507f1f77bcf86cd799439012',
'507f1f77bcf86cd799439013'
]
],
'microservice_id' => '507f1f77bcf86cd799439014',
'conditions' => [
[
'condition_type_id' => '507f1f77bcf86cd799439015',
'operator' => 'gt',
'compare_to' => '80',
'check_every' => 300
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flexxible.net/v2/organizations/{organization_id}/flows"
payload := strings.NewReader("{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flexxible.net/v2/organizations/{organization_id}/flows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flexxible.net/v2/organizations/{organization_id}/flows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": {\n \"en-EN\": \"Daily Backup Flow\",\n \"es-ES\": \"Proceso de copia diaria\"\n },\n \"description\": {\n \"en-EN\": \"Automated daily backup process\",\n \"es-ES\": \"Proceso automatizado de copia de seguridad diaria\"\n },\n \"type\": \"workspace\",\n \"detection_only\": false,\n \"cooldown_minutes\": 60,\n \"enabled\": false,\n \"init_text\": {\n \"en-EN\": \"Starting backup process...\",\n \"es-ES\": \"Iniciando proceso de copia...\"\n },\n \"ok_text\": {\n \"en-EN\": \"Backup completed successfully\",\n \"es-ES\": \"Copia completada correctamente\"\n },\n \"ko_text\": {\n \"en-EN\": \"Backup failed. Please check logs.\",\n \"es-ES\": \"Copia fallida. Revise los registros.\"\n },\n \"target\": {\n \"type\": \"workspaces\",\n \"ids\": [\n \"507f1f77bcf86cd799439012\",\n \"507f1f77bcf86cd799439013\"\n ]\n },\n \"microservice_id\": \"507f1f77bcf86cd799439014\",\n \"conditions\": [\n {\n \"condition_type_id\": \"507f1f77bcf86cd799439015\",\n \"operator\": \"gt\",\n \"compare_to\": \"80\",\n \"check_every\": 300\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "507f1f77bcf86cd799439011"
}{
"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>"
}
}