saveAndcreateSolution
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"solution_id": 123,
"is_default_solution": true,
"workflow_ids": [
123
],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [
123
],
"price": "<string>",
"allowed": 123,
"agent_ids": [
123
],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution"
payload = {
"solution_id": 123,
"is_default_solution": True,
"workflow_ids": [123],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [123],
"price": "<string>",
"allowed": 123,
"agent_ids": [123],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
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({
solution_id: 123,
is_default_solution: true,
workflow_ids: [123],
create_time: '2023-11-07T05:31:56Z',
user_id: '<string>',
user_settings: '<string>',
update_time: '2023-11-07T05:31:56Z',
category: 123,
position: 123,
app_ids: [123],
price: '<string>',
allowed: 123,
agent_ids: [123],
how_to_guide_invoice_id: 123,
solution_name: '<string>',
active: 123,
global: 123,
solution_description: '<string>',
image_url: '<string>',
default_solution: 123
})
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution', 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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution",
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([
'solution_id' => 123,
'is_default_solution' => true,
'workflow_ids' => [
123
],
'create_time' => '2023-11-07T05:31:56Z',
'user_id' => '<string>',
'user_settings' => '<string>',
'update_time' => '2023-11-07T05:31:56Z',
'category' => 123,
'position' => 123,
'app_ids' => [
123
],
'price' => '<string>',
'allowed' => 123,
'agent_ids' => [
123
],
'how_to_guide_invoice_id' => 123,
'solution_name' => '<string>',
'active' => 123,
'global' => 123,
'solution_description' => '<string>',
'image_url' => '<string>',
'default_solution' => 123
]),
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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution"
payload := strings.NewReader("{\n \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution")
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 \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\n}"
response = http.request(request)
puts response.read_body{
"solutions": [
{
"workflows": [
{
"workflow_id": 123,
"workflow_name": "<string>",
"solution_id": 123,
"is_default": true
}
],
"agents": [
{
"automateID": 123,
"name": "<string>",
"workflowID": 123,
"startTime": "<string>",
"secondsUntilNextExecution": 123,
"description": "<string>",
"blackout_start": "<string>",
"blackout_end": "<string>",
"blackout_days": "<string>",
"active": 123
}
],
"solution_id": 123,
"is_default_solution": true,
"workflow_ids": [
123
],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [
123
],
"price": "<string>",
"allowed": 123,
"agent_ids": [
123
],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
],
"service_status": {
"invoice_id": 123,
"message": "<string>"
}
}EzzyRest
saveAndcreateSolution
POST
/
saveAndcreateSolution
saveAndcreateSolution
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"solution_id": 123,
"is_default_solution": true,
"workflow_ids": [
123
],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [
123
],
"price": "<string>",
"allowed": 123,
"agent_ids": [
123
],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution"
payload = {
"solution_id": 123,
"is_default_solution": True,
"workflow_ids": [123],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [123],
"price": "<string>",
"allowed": 123,
"agent_ids": [123],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
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({
solution_id: 123,
is_default_solution: true,
workflow_ids: [123],
create_time: '2023-11-07T05:31:56Z',
user_id: '<string>',
user_settings: '<string>',
update_time: '2023-11-07T05:31:56Z',
category: 123,
position: 123,
app_ids: [123],
price: '<string>',
allowed: 123,
agent_ids: [123],
how_to_guide_invoice_id: 123,
solution_name: '<string>',
active: 123,
global: 123,
solution_description: '<string>',
image_url: '<string>',
default_solution: 123
})
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution', 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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution",
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([
'solution_id' => 123,
'is_default_solution' => true,
'workflow_ids' => [
123
],
'create_time' => '2023-11-07T05:31:56Z',
'user_id' => '<string>',
'user_settings' => '<string>',
'update_time' => '2023-11-07T05:31:56Z',
'category' => 123,
'position' => 123,
'app_ids' => [
123
],
'price' => '<string>',
'allowed' => 123,
'agent_ids' => [
123
],
'how_to_guide_invoice_id' => 123,
'solution_name' => '<string>',
'active' => 123,
'global' => 123,
'solution_description' => '<string>',
'image_url' => '<string>',
'default_solution' => 123
]),
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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution"
payload := strings.NewReader("{\n \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\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://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/saveAndcreateSolution")
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 \"solution_id\": 123,\n \"is_default_solution\": true,\n \"workflow_ids\": [\n 123\n ],\n \"create_time\": \"2023-11-07T05:31:56Z\",\n \"user_id\": \"<string>\",\n \"user_settings\": \"<string>\",\n \"update_time\": \"2023-11-07T05:31:56Z\",\n \"category\": 123,\n \"position\": 123,\n \"app_ids\": [\n 123\n ],\n \"price\": \"<string>\",\n \"allowed\": 123,\n \"agent_ids\": [\n 123\n ],\n \"how_to_guide_invoice_id\": 123,\n \"solution_name\": \"<string>\",\n \"active\": 123,\n \"global\": 123,\n \"solution_description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"default_solution\": 123\n}"
response = http.request(request)
puts response.read_body{
"solutions": [
{
"workflows": [
{
"workflow_id": 123,
"workflow_name": "<string>",
"solution_id": 123,
"is_default": true
}
],
"agents": [
{
"automateID": 123,
"name": "<string>",
"workflowID": 123,
"startTime": "<string>",
"secondsUntilNextExecution": 123,
"description": "<string>",
"blackout_start": "<string>",
"blackout_end": "<string>",
"blackout_days": "<string>",
"active": 123
}
],
"solution_id": 123,
"is_default_solution": true,
"workflow_ids": [
123
],
"create_time": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"user_settings": "<string>",
"update_time": "2023-11-07T05:31:56Z",
"category": 123,
"position": 123,
"app_ids": [
123
],
"price": "<string>",
"allowed": 123,
"agent_ids": [
123
],
"how_to_guide_invoice_id": 123,
"solution_name": "<string>",
"active": 123,
"global": 123,
"solution_description": "<string>",
"image_url": "<string>",
"default_solution": 123
}
],
"service_status": {
"invoice_id": 123,
"message": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsontext/jsonapplication/*+json
⌘I