Bulk save projects
curl --request POST \
--url https://api.nomi.tools/v1/projects/bulk \
--header 'Accept: <accept>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
{
"projectCategoryId": "<string>",
"name": "<string>",
"notes": "<string>",
"hasPlan": true,
"planIncome": 123,
"planOutcome": 123
}
]
'import requests
url = "https://api.nomi.tools/v1/projects/bulk"
payload = [
{
"projectCategoryId": "<string>",
"name": "<string>",
"notes": "<string>",
"hasPlan": True,
"planIncome": 123,
"planOutcome": 123
}
]
headers = {
"Accept": "<accept>",
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
projectCategoryId: '<string>',
name: '<string>',
notes: '<string>',
hasPlan: true,
planIncome: 123,
planOutcome: 123
}
])
};
fetch('https://api.nomi.tools/v1/projects/bulk', 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.nomi.tools/v1/projects/bulk",
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([
[
'projectCategoryId' => '<string>',
'name' => '<string>',
'notes' => '<string>',
'hasPlan' => true,
'planIncome' => 123,
'planOutcome' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Basic <encoded-value>",
"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.nomi.tools/v1/projects/bulk"
payload := strings.NewReader("[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nomi.tools/v1/projects/bulk")
.header("Accept", "<accept>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomi.tools/v1/projects/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"ids": [
"<string>"
]
}Projects
Bulk save projects
Save multiple projects in bulk.
POST
/
v1
/
projects
/
bulk
Bulk save projects
curl --request POST \
--url https://api.nomi.tools/v1/projects/bulk \
--header 'Accept: <accept>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
{
"projectCategoryId": "<string>",
"name": "<string>",
"notes": "<string>",
"hasPlan": true,
"planIncome": 123,
"planOutcome": 123
}
]
'import requests
url = "https://api.nomi.tools/v1/projects/bulk"
payload = [
{
"projectCategoryId": "<string>",
"name": "<string>",
"notes": "<string>",
"hasPlan": True,
"planIncome": 123,
"planOutcome": 123
}
]
headers = {
"Accept": "<accept>",
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
projectCategoryId: '<string>',
name: '<string>',
notes: '<string>',
hasPlan: true,
planIncome: 123,
planOutcome: 123
}
])
};
fetch('https://api.nomi.tools/v1/projects/bulk', 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.nomi.tools/v1/projects/bulk",
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([
[
'projectCategoryId' => '<string>',
'name' => '<string>',
'notes' => '<string>',
'hasPlan' => true,
'planIncome' => 123,
'planOutcome' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Basic <encoded-value>",
"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.nomi.tools/v1/projects/bulk"
payload := strings.NewReader("[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nomi.tools/v1/projects/bulk")
.header("Accept", "<accept>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomi.tools/v1/projects/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"projectCategoryId\": \"<string>\",\n \"name\": \"<string>\",\n \"notes\": \"<string>\",\n \"hasPlan\": true,\n \"planIncome\": 123,\n \"planOutcome\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"ids": [
"<string>"
]
}Authorizations
Use HTTP Basic Authentication. Provide your email as login and PPT token as the password.
Headers
Available options:
application/json Body
application/json
Identifier for the project category.
Name of the project.
Additional notes about the project.
Indicates if the project has a plan.
Planned income for the project.
Planned outcome for the project.
Response
Projects saved successfully