cURL
curl --request PUT \
--url https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"entityType": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"priority": 499,
"enabled": true,
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"tags": "<string>",
"conditions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>"
}
],
"actions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>",
"order": 499
}
],
"triggers": [
{
"type": "<string>",
"eventType": "<string>",
"scheduleExpression": "<string>",
"eventPattern": "<string>",
"enabled": true,
"configuration": {}
}
]
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}"
payload = {
"name": "<string>",
"entityType": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"priority": 499,
"enabled": True,
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"tags": "<string>",
"conditions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>"
}
],
"actions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>",
"order": 499
}
],
"triggers": [
{
"type": "<string>",
"eventType": "<string>",
"scheduleExpression": "<string>",
"eventPattern": "<string>",
"enabled": True,
"configuration": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
entityType: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
priority: 499,
enabled: true,
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
tags: '<string>',
conditions: [{type: '<string>', parameters: {}, description: '<string>'}],
actions: [{type: '<string>', parameters: {}, description: '<string>', order: 499}],
triggers: [
{
type: '<string>',
eventType: '<string>',
scheduleExpression: '<string>',
eventPattern: '<string>',
enabled: true,
configuration: {}
}
]
})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}', 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.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'entityType' => '<string>',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'priority' => 499,
'enabled' => true,
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'tags' => '<string>',
'conditions' => [
[
'type' => '<string>',
'parameters' => [
],
'description' => '<string>'
]
],
'actions' => [
[
'type' => '<string>',
'parameters' => [
],
'description' => '<string>',
'order' => 499
]
],
'triggers' => [
[
'type' => '<string>',
'eventType' => '<string>',
'scheduleExpression' => '<string>',
'eventPattern' => '<string>',
'enabled' => true,
'configuration' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyWorkflowManagement
Put v1businesses workflows
PUT
/
v1
/
businesses
/
{businessId}
/
workflows
/
{workflowId}
cURL
curl --request PUT \
--url https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"entityType": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"priority": 499,
"enabled": true,
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"tags": "<string>",
"conditions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>"
}
],
"actions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>",
"order": 499
}
],
"triggers": [
{
"type": "<string>",
"eventType": "<string>",
"scheduleExpression": "<string>",
"eventPattern": "<string>",
"enabled": true,
"configuration": {}
}
]
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}"
payload = {
"name": "<string>",
"entityType": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"priority": 499,
"enabled": True,
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"tags": "<string>",
"conditions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>"
}
],
"actions": [
{
"type": "<string>",
"parameters": {},
"description": "<string>",
"order": 499
}
],
"triggers": [
{
"type": "<string>",
"eventType": "<string>",
"scheduleExpression": "<string>",
"eventPattern": "<string>",
"enabled": True,
"configuration": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
entityType: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
description: '<string>',
priority: 499,
enabled: true,
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
tags: '<string>',
conditions: [{type: '<string>', parameters: {}, description: '<string>'}],
actions: [{type: '<string>', parameters: {}, description: '<string>', order: 499}],
triggers: [
{
type: '<string>',
eventType: '<string>',
scheduleExpression: '<string>',
eventPattern: '<string>',
enabled: true,
configuration: {}
}
]
})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}', 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.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'entityType' => '<string>',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'description' => '<string>',
'priority' => 499,
'enabled' => true,
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'tags' => '<string>',
'conditions' => [
[
'type' => '<string>',
'parameters' => [
],
'description' => '<string>'
]
],
'actions' => [
[
'type' => '<string>',
'parameters' => [
],
'description' => '<string>',
'order' => 499
]
],
'triggers' => [
[
'type' => '<string>',
'eventType' => '<string>',
'scheduleExpression' => '<string>',
'eventPattern' => '<string>',
'enabled' => true,
'configuration' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/workflows/{workflowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"entityType\": \"<string>\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"description\": \"<string>\",\n \"priority\": 499,\n \"enabled\": true,\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"tags\": \"<string>\",\n \"conditions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"type\": \"<string>\",\n \"parameters\": {},\n \"description\": \"<string>\",\n \"order\": 499\n }\n ],\n \"triggers\": [\n {\n \"type\": \"<string>\",\n \"eventType\": \"<string>\",\n \"scheduleExpression\": \"<string>\",\n \"eventPattern\": \"<string>\",\n \"enabled\": true,\n \"configuration\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyBody
application/jsontext/jsonapplication/*+json
Maximum string length:
200Maximum string length:
100Maximum string length:
1000Required range:
0 <= x <= 999Maximum string length:
500Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
200
OK
Was this page helpful?
⌘I