Projects
Update Project
PATCH
/
projects
Projects
curl --request PATCH \
--url https://demand.researchdesk.com/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [
2,
3,
4
],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}
'import requests
url = "https://demand.researchdesk.com/projects"
payload = {
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [2, 3, 4],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'c9cf2545-9474-436e-933c-f6dc2cf8a39b',
account_id: 'fcb8f022-87fa-42c4-b08a-816a8de9758c',
project_manager_id: '44b83408-5091-70ae-5cea-b8045195294d',
name: '5G Network Adoption and Purchasing Decisions',
project_number: '5G-001',
session_exclusions: [2, 3, 4],
business_unit: '27daf638-e54c-4e20-a279-c55bccb6a58d'
})
};
fetch('https://demand.researchdesk.com/projects', 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://demand.researchdesk.com/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'c9cf2545-9474-436e-933c-f6dc2cf8a39b',
'account_id' => 'fcb8f022-87fa-42c4-b08a-816a8de9758c',
'project_manager_id' => '44b83408-5091-70ae-5cea-b8045195294d',
'name' => '5G Network Adoption and Purchasing Decisions',
'project_number' => '5G-001',
'session_exclusions' => [
2,
3,
4
],
'business_unit' => '27daf638-e54c-4e20-a279-c55bccb6a58d'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://demand.researchdesk.com/projects"
payload := strings.NewReader("{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("https://demand.researchdesk.com/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://demand.researchdesk.com/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}"
response = http.request(request)
puts response.read_body{
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"project_name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [
2,
3,
4
],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}Rate limit: 10 requests/second
Note: The
GET method returns a list of objects, POST and PATCH accept and return a single object
Query String Parameters (GET)
| Parameter | Description | Required | Example |
|---|---|---|---|
ids | Comma delimited value of the Project IDs being retreived. | No | ?ids=1,2,3 |
project_manager_ids | Comma delimited value of the Project Manager (User) IDs associated with the Projects being retreived. | No | ?project_manager_ids=1,2,3 |
page | Integer value of the page being retrieved | No; if omitted, the value defaults to 0. | ?page=2 |
page_size | Integer value dictating the number of objects returned per page. | No; if omitted, the value defaults to 50. | ?page_size=100 |
Project Object Definition
| Parameter | Required for POST | Required for PATCH | Description |
|---|---|---|---|
id | System Assigned | Yes | The ID of the Project object. |
account_id | Yes | No | The ID of the associated Account object. |
project_manager_id | Yes | No | The ID of the associated Project Manager (User) object. |
project_name | Yes | No | The name of the Project; there is no uniqueness constraint. |
project_number | Yes | No | Client project identifier; nonfunctional. |
session_exclusions | No | No | List of Project IDs of which sessions will not be allowed in the Project. |
Authorizations
Authentication token to be sent directly in the Authorization header (no '' prefix).
Body
application/json
Was this page helpful?
⌘I
Projects
curl --request PATCH \
--url https://demand.researchdesk.com/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [
2,
3,
4
],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}
'import requests
url = "https://demand.researchdesk.com/projects"
payload = {
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [2, 3, 4],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'c9cf2545-9474-436e-933c-f6dc2cf8a39b',
account_id: 'fcb8f022-87fa-42c4-b08a-816a8de9758c',
project_manager_id: '44b83408-5091-70ae-5cea-b8045195294d',
name: '5G Network Adoption and Purchasing Decisions',
project_number: '5G-001',
session_exclusions: [2, 3, 4],
business_unit: '27daf638-e54c-4e20-a279-c55bccb6a58d'
})
};
fetch('https://demand.researchdesk.com/projects', 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://demand.researchdesk.com/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'c9cf2545-9474-436e-933c-f6dc2cf8a39b',
'account_id' => 'fcb8f022-87fa-42c4-b08a-816a8de9758c',
'project_manager_id' => '44b83408-5091-70ae-5cea-b8045195294d',
'name' => '5G Network Adoption and Purchasing Decisions',
'project_number' => '5G-001',
'session_exclusions' => [
2,
3,
4
],
'business_unit' => '27daf638-e54c-4e20-a279-c55bccb6a58d'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://demand.researchdesk.com/projects"
payload := strings.NewReader("{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("https://demand.researchdesk.com/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://demand.researchdesk.com/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"c9cf2545-9474-436e-933c-f6dc2cf8a39b\",\n \"account_id\": \"fcb8f022-87fa-42c4-b08a-816a8de9758c\",\n \"project_manager_id\": \"44b83408-5091-70ae-5cea-b8045195294d\",\n \"name\": \"5G Network Adoption and Purchasing Decisions\",\n \"project_number\": \"5G-001\",\n \"session_exclusions\": [\n 2,\n 3,\n 4\n ],\n \"business_unit\": \"27daf638-e54c-4e20-a279-c55bccb6a58d\"\n}"
response = http.request(request)
puts response.read_body{
"id": "c9cf2545-9474-436e-933c-f6dc2cf8a39b",
"account_id": "fcb8f022-87fa-42c4-b08a-816a8de9758c",
"project_manager_id": "44b83408-5091-70ae-5cea-b8045195294d",
"project_name": "5G Network Adoption and Purchasing Decisions",
"project_number": "5G-001",
"session_exclusions": [
2,
3,
4
],
"business_unit": "27daf638-e54c-4e20-a279-c55bccb6a58d"
}