curl --request POST \
--url https://rules.platform.arb.inc/rulesets/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "aaa-commercial-2023",
"title": "AAA Commercial Arbitration Rules 2023",
"description": "Comprehensive rules for commercial arbitration disputes",
"markdown": "# AAA Commercial Arbitration Rules\n\n## Rule 1: Scope of Rules\n\n...",
"timetable": {
"phases": [
{
"id": "filing",
"maxDurationInSeconds": 2592000,
"documents": [
{
"id": "statement-of-claim",
"filedBy": "claimant",
"maxAllowed": 1,
"approvedBy": null,
"required": true,
"recommended": false
}
],
"allowEvidenceSubmission": true,
"autoAdvance": false
}
]
},
"isActive": false
}
'import requests
url = "https://rules.platform.arb.inc/rulesets/create"
payload = {
"id": "aaa-commercial-2023",
"title": "AAA Commercial Arbitration Rules 2023",
"description": "Comprehensive rules for commercial arbitration disputes",
"markdown": "# AAA Commercial Arbitration Rules
## Rule 1: Scope of Rules
...",
"timetable": { "phases": [
{
"id": "filing",
"maxDurationInSeconds": 2592000,
"documents": [
{
"id": "statement-of-claim",
"filedBy": "claimant",
"maxAllowed": 1,
"approvedBy": None,
"required": True,
"recommended": False
}
],
"allowEvidenceSubmission": True,
"autoAdvance": False
}
] },
"isActive": False
}
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({
id: 'aaa-commercial-2023',
title: 'AAA Commercial Arbitration Rules 2023',
description: 'Comprehensive rules for commercial arbitration disputes',
markdown: '# AAA Commercial Arbitration Rules\n\n## Rule 1: Scope of Rules\n\n...',
timetable: {
phases: [
{
id: 'filing',
maxDurationInSeconds: 2592000,
documents: [
{
id: 'statement-of-claim',
filedBy: 'claimant',
maxAllowed: 1,
approvedBy: null,
required: true,
recommended: false
}
],
allowEvidenceSubmission: true,
autoAdvance: false
}
]
},
isActive: false
})
};
fetch('https://rules.platform.arb.inc/rulesets/create', 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://rules.platform.arb.inc/rulesets/create",
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([
'id' => 'aaa-commercial-2023',
'title' => 'AAA Commercial Arbitration Rules 2023',
'description' => 'Comprehensive rules for commercial arbitration disputes',
'markdown' => '# AAA Commercial Arbitration Rules
## Rule 1: Scope of Rules
...',
'timetable' => [
'phases' => [
[
'id' => 'filing',
'maxDurationInSeconds' => 2592000,
'documents' => [
[
'id' => 'statement-of-claim',
'filedBy' => 'claimant',
'maxAllowed' => 1,
'approvedBy' => null,
'required' => true,
'recommended' => false
]
],
'allowEvidenceSubmission' => true,
'autoAdvance' => false
]
]
],
'isActive' => false
]),
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://rules.platform.arb.inc/rulesets/create"
payload := strings.NewReader("{\n \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\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://rules.platform.arb.inc/rulesets/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rules.platform.arb.inc/rulesets/create")
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 \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\n}"
response = http.request(request)
puts response.read_body"ruleset successfully created, don't forget to activate it""ruleset not found"Create a new ruleset
Creates a new ruleset with its rules, PDF document, and default timetable. The markdown content is automatically converted to PDF and stored in cloud storage. Requires rules.rule_sets.creator permission.
curl --request POST \
--url https://rules.platform.arb.inc/rulesets/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "aaa-commercial-2023",
"title": "AAA Commercial Arbitration Rules 2023",
"description": "Comprehensive rules for commercial arbitration disputes",
"markdown": "# AAA Commercial Arbitration Rules\n\n## Rule 1: Scope of Rules\n\n...",
"timetable": {
"phases": [
{
"id": "filing",
"maxDurationInSeconds": 2592000,
"documents": [
{
"id": "statement-of-claim",
"filedBy": "claimant",
"maxAllowed": 1,
"approvedBy": null,
"required": true,
"recommended": false
}
],
"allowEvidenceSubmission": true,
"autoAdvance": false
}
]
},
"isActive": false
}
'import requests
url = "https://rules.platform.arb.inc/rulesets/create"
payload = {
"id": "aaa-commercial-2023",
"title": "AAA Commercial Arbitration Rules 2023",
"description": "Comprehensive rules for commercial arbitration disputes",
"markdown": "# AAA Commercial Arbitration Rules
## Rule 1: Scope of Rules
...",
"timetable": { "phases": [
{
"id": "filing",
"maxDurationInSeconds": 2592000,
"documents": [
{
"id": "statement-of-claim",
"filedBy": "claimant",
"maxAllowed": 1,
"approvedBy": None,
"required": True,
"recommended": False
}
],
"allowEvidenceSubmission": True,
"autoAdvance": False
}
] },
"isActive": False
}
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({
id: 'aaa-commercial-2023',
title: 'AAA Commercial Arbitration Rules 2023',
description: 'Comprehensive rules for commercial arbitration disputes',
markdown: '# AAA Commercial Arbitration Rules\n\n## Rule 1: Scope of Rules\n\n...',
timetable: {
phases: [
{
id: 'filing',
maxDurationInSeconds: 2592000,
documents: [
{
id: 'statement-of-claim',
filedBy: 'claimant',
maxAllowed: 1,
approvedBy: null,
required: true,
recommended: false
}
],
allowEvidenceSubmission: true,
autoAdvance: false
}
]
},
isActive: false
})
};
fetch('https://rules.platform.arb.inc/rulesets/create', 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://rules.platform.arb.inc/rulesets/create",
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([
'id' => 'aaa-commercial-2023',
'title' => 'AAA Commercial Arbitration Rules 2023',
'description' => 'Comprehensive rules for commercial arbitration disputes',
'markdown' => '# AAA Commercial Arbitration Rules
## Rule 1: Scope of Rules
...',
'timetable' => [
'phases' => [
[
'id' => 'filing',
'maxDurationInSeconds' => 2592000,
'documents' => [
[
'id' => 'statement-of-claim',
'filedBy' => 'claimant',
'maxAllowed' => 1,
'approvedBy' => null,
'required' => true,
'recommended' => false
]
],
'allowEvidenceSubmission' => true,
'autoAdvance' => false
]
]
],
'isActive' => false
]),
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://rules.platform.arb.inc/rulesets/create"
payload := strings.NewReader("{\n \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\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://rules.platform.arb.inc/rulesets/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rules.platform.arb.inc/rulesets/create")
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 \"id\": \"aaa-commercial-2023\",\n \"title\": \"AAA Commercial Arbitration Rules 2023\",\n \"description\": \"Comprehensive rules for commercial arbitration disputes\",\n \"markdown\": \"# AAA Commercial Arbitration Rules\\n\\n## Rule 1: Scope of Rules\\n\\n...\",\n \"timetable\": {\n \"phases\": [\n {\n \"id\": \"filing\",\n \"maxDurationInSeconds\": 2592000,\n \"documents\": [\n {\n \"id\": \"statement-of-claim\",\n \"filedBy\": \"claimant\",\n \"maxAllowed\": 1,\n \"approvedBy\": null,\n \"required\": true,\n \"recommended\": false\n }\n ],\n \"allowEvidenceSubmission\": true,\n \"autoAdvance\": false\n }\n ]\n },\n \"isActive\": false\n}"
response = http.request(request)
puts response.read_body"ruleset successfully created, don't forget to activate it""ruleset not found"Authorizations
access token
Body
Unique identifier for the ruleset
1 - 50"aaa-commercial-2023"
Human-readable title of the ruleset
1 - 100"AAA Commercial Arbitration Rules 2023"
Brief description of the ruleset
1 - 250"Comprehensive rules for commercial arbitration disputes"
Full text of the rules in markdown format
1 - 20000"# AAA Commercial Arbitration Rules\n\n## Rule 1: Scope of Rules\n\n..."
Default timetable configuration for cases using this ruleset
Show child attributes
Show child attributes
Whether the ruleset should be marked as active
false
Response
Ruleset created successfully
The response is of type string.
"ruleset successfully created, don't forget to activate it"