Related Tasks & Items
Retrieve a Related Item Link #
|
Sample Object
|
Retrieve a Related Item Link
| Name | Type | Required? | Description | Details |
|---|---|---|---|---|
| id | Number | Yes |
The link's ID, from the record's links or GET /v1/related_items.
|
Good to know
Retrieves one link by its ID: the two linked records. Links work in both directions and have no direction of their own, so the source is the record that comes first by item type ID, then asset type, then ID, whichever record the link was added from. A link to a record on a hidden Event tab is not available.
Linking related items
A link connects two records on the same Event and works in both directions. The source is the record the link was added from. When you read a record's links, each entry describes the other record.
Types: 1 Task; 2 Playbook Activity; 3 Booth Service; 4 Shipment; 5 Asset Reservation; 6 Giveaway; 7 Sponsorship; 8 Misc. Expense / Credit; 9 Travel Reservation; 10 Attendee / Registration. GET /v1/references/related_item_types lists them with the types each can be linked to. For an Asset Reservation, also send the asset type: 1 Capital or 2 Collateral.
For GET /v1/related_items, source_item_type names the record whose links are listed, and related_item_name and related_item_exhibitday_url describe each linked record. Opening related_item_exhibitday_url checks the user's ExhibitDay access again.
Links are added and removed only with POST and DELETE /v1/related_items. General Tasks (Tasks without an Event) can't be linked. Records on hidden Event tabs can't be linked or read here. A record on a locked tab can be linked from an unlocked record, but its own links can't be changed while its area is locked. An Asset Reservation can be the source while the Event's Assets tab is visible and unlocked, including a reservation of an Asset shared with you by another workspace. A link works both ways: it is listed from both records, and posting a pair that is already linked from the other side changes nothing. Deleting either record removes its links, and moving a Task to another Event or making it a General Task removes the Task's links. Adding or removing a link counts as a change to both records (each gets a new revision, so an update that still expects the older revision is refused) and is recorded in the Event's history; it sends no email. When an Event is copied, links between records that were copied are copied too; links to records that were not copied are left out.
A Giveaway takes Asset Reservations only when its Source includes inventory: for PATCH /v1/events/giveaways, item_source_id 2 (Existing Inventory) or 3 (From a Supplier + Existing Inventory). Linking an Asset Reservation to a Supplier-only Giveaway is refused from either side.
curl -X GET "https://api.exhibitday.com/v1/related_items/info?id=5551" -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch("https://api.exhibitday.com/v1/related_items/info?" + new URLSearchParams({ "id": "5551" }), {
method: "GET",
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
console.log(response.status, data);
import requests
response = requests.get(
"https://api.exhibitday.com/v1/related_items/info",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"id": "5551"},
)
print(response.status_code, response.json())
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.exhibitday.com/v1/related_items/info?id=5551");
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ExhibitDayExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.exhibitday.com/v1/related_items/info?id=5551"))
.header("Authorization", "Bearer YOUR_API_KEY")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}
<?php
$curl = curl_init('https://api.exhibitday.com/v1/related_items/info?id=5551');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($curl);
if ($response === false) {
throw new RuntimeException(curl_error($curl));
}
echo curl_getinfo($curl, CURLINFO_HTTP_CODE) . PHP_EOL . $response;
curl_close($curl);
require 'net/http'
require 'uri'
uri = URI('https://api.exhibitday.com/v1/related_items/info?id=5551')
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(request)
end
puts "#{response.code} #{response.body}"
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func main() {
request, err := http.NewRequest("GET", "https://api.exhibitday.com/v1/related_items/info?id=5551", nil)
if err != nil { log.Fatal(err) }
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
response, err := (&http.Client{}).Do(request)
if err != nil { log.Fatal(err) }
defer response.Body.Close()
body, err := io.ReadAll(response.Body)
if err != nil { log.Fatal(err) }
fmt.Printf("%d %s\n", response.StatusCode, body)
}
Retrieve Related Items #
|
Retrieve Related Items
| Name | Type | Required? | Description | Details |
|---|---|---|---|---|
| source_item_type_id | Number | Yes |
The type of the record whose links you want: 1 Task, 2 Playbook Activity, 3 Booth Service, 4 Shipment, 5 Asset Reservation, 6 Giveaway, 7 Sponsorship, 8 Misc. Expense / Credit, 9 Travel Reservation, 10 Attendee / Registration.
|
|
| source_item_id | Number | Yes |
The ID of the record whose links you want, for the type in source_item_type_id: 1 Task: the Task ID (GET /v1/tasks); 2 Playbook Activity: the Playbook Activity ID (GET /v1/events/playbook_activities); 3 Booth Service: the Booth Service ID (GET /v1/events/booth_services); 4 Shipment: the Shipment ID (GET /v1/events/shipments); 5 Asset Reservation: the Asset Reservation ID (GET /v1/assets/reservations); 6 Giveaway: the Event Giveaway ID (GET /v1/events/giveaways); 7 Sponsorship: the Sponsorship ID (GET /v1/events/sponsorships); 8 Misc. Expense / Credit: the Misc. Expense / Credit ID (GET /v1/events/miscexpensecredits); 9 Travel Reservation: the Travel Reservation ID (GET /v1/events/travel_reservations); 10 Attendee / Registration: the Staff / Registration entry ID (GET /v1/events/staff). For example, for a Booth Service send its Booth Service ID, and for a Giveaway send the Event Giveaway's ID.
|
|
| source_item_asset_type_id | Number | No |
Asset Reservations only: 1 Capital or 2 Collateral. Leave it out for every other type.
|
|
| $limit | Number | No |
The most links to return: a positive whole number. Leave it out to return all remaining links.
|
|
| $offset | Number | No |
How many links to skip: zero or a positive whole number; zero by default.
|
|
| $result_format | String | No |
By default, the response is an object containing
list_data and the paging totals (records_found, total_records, has_more). Send array to get just a JSON array of the records, or wrapped_in_array to get the default object inside a one-item array.
|
Allowed values:
array | wrapped_in_array |
Good to know
Retrieves the Tasks and items linked to one record, in the same order as the record's Related Items tab in ExhibitDay: Tasks first, then the other types, oldest link first. Every single-record GET also includes these links. Records on hidden Event tabs are not included.
Linking related items
A link connects two records on the same Event and works in both directions. The source is the record the link was added from. When you read a record's links, each entry describes the other record.
Types: 1 Task; 2 Playbook Activity; 3 Booth Service; 4 Shipment; 5 Asset Reservation; 6 Giveaway; 7 Sponsorship; 8 Misc. Expense / Credit; 9 Travel Reservation; 10 Attendee / Registration. GET /v1/references/related_item_types lists them with the types each can be linked to. For an Asset Reservation, also send the asset type: 1 Capital or 2 Collateral.
For GET /v1/related_items, source_item_type names the record whose links are listed, and related_item_name and related_item_exhibitday_url describe each linked record. Opening related_item_exhibitday_url checks the user's ExhibitDay access again.
Links are added and removed only with POST and DELETE /v1/related_items. General Tasks (Tasks without an Event) can't be linked. Records on hidden Event tabs can't be linked or read here. A record on a locked tab can be linked from an unlocked record, but its own links can't be changed while its area is locked. An Asset Reservation can be the source while the Event's Assets tab is visible and unlocked, including a reservation of an Asset shared with you by another workspace. A link works both ways: it is listed from both records, and posting a pair that is already linked from the other side changes nothing. Deleting either record removes its links, and moving a Task to another Event or making it a General Task removes the Task's links. Adding or removing a link counts as a change to both records (each gets a new revision, so an update that still expects the older revision is refused) and is recorded in the Event's history; it sends no email. When an Event is copied, links between records that were copied are copied too; links to records that were not copied are left out.
A Giveaway takes Asset Reservations only when its Source includes inventory: for PATCH /v1/events/giveaways, item_source_id 2 (Existing Inventory) or 3 (From a Supplier + Existing Inventory). Linking an Asset Reservation to a Supplier-only Giveaway is refused from either side.
curl -X GET "https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456" -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch("https://api.exhibitday.com/v1/related_items?" + new URLSearchParams({ "source_item_type_id": "7", "source_item_id": "23456" }), {
method: "GET",
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
console.log(response.status, data);
import requests
response = requests.get(
"https://api.exhibitday.com/v1/related_items",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"source_item_type_id": "7", "source_item_id": "23456"},
)
print(response.status_code, response.json())
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456");
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ExhibitDayExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456"))
.header("Authorization", "Bearer YOUR_API_KEY")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}
<?php
$curl = curl_init('https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($curl);
if ($response === false) {
throw new RuntimeException(curl_error($curl));
}
echo curl_getinfo($curl, CURLINFO_HTTP_CODE) . PHP_EOL . $response;
curl_close($curl);
require 'net/http'
require 'uri'
uri = URI('https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456')
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(request)
end
puts "#{response.code} #{response.body}"
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func main() {
request, err := http.NewRequest("GET", "https://api.exhibitday.com/v1/related_items?source_item_type_id=7&source_item_id=23456", nil)
if err != nil { log.Fatal(err) }
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
response, err := (&http.Client{}).Do(request)
if err != nil { log.Fatal(err) }
defer response.Body.Close()
body, err := io.ReadAll(response.Body)
if err != nil { log.Fatal(err) }
fmt.Printf("%d %s\n", response.StatusCode, body)
}
Link Related Items #
|
Link Related Items
| Name | Type | Required? | Description | Details |
|---|---|---|---|---|
| source_item_type_id | Number | Yes |
The type of the record you are linking from: 1 Task, 2 Playbook Activity, 3 Booth Service, 4 Shipment, 5 Asset Reservation, 6 Giveaway, 7 Sponsorship, 8 Misc. Expense / Credit, 9 Travel Reservation, 10 Attendee / Registration.
|
|
| source_item_id | Number | Yes |
The ID of the record you are linking from, for the type in source_item_type_id: 1 Task: the Task ID (GET /v1/tasks); 2 Playbook Activity: the Playbook Activity ID (GET /v1/events/playbook_activities); 3 Booth Service: the Booth Service ID (GET /v1/events/booth_services); 4 Shipment: the Shipment ID (GET /v1/events/shipments); 5 Asset Reservation: the Asset Reservation ID (GET /v1/assets/reservations); 6 Giveaway: the Event Giveaway ID (GET /v1/events/giveaways); 7 Sponsorship: the Sponsorship ID (GET /v1/events/sponsorships); 8 Misc. Expense / Credit: the Misc. Expense / Credit ID (GET /v1/events/miscexpensecredits); 9 Travel Reservation: the Travel Reservation ID (GET /v1/events/travel_reservations); 10 Attendee / Registration: the Staff / Registration entry ID (GET /v1/events/staff). For example, for a Booth Service send its Booth Service ID, and for a Giveaway send the Event Giveaway's ID.
|
|
| related_items | JSON object/list | Yes |
The record or records to link: one JSON object or a JSON array of up to 100 objects, each with related_item_type_id, related_item_id and, for Asset Reservations only, related_item_asset_type_id (1 Capital, 2 Collateral). Example: [{"related_item_type_id":1,"related_item_id":67890},{"related_item_type_id":4,"related_item_id":45678}]. All are linked, or none are.
View value format and limitsFile uploads use multipart form data. Other structured values use a JSON object or array; form/query values use JSON text.
|
|
| source_item_asset_type_id | Number | No |
Asset Reservations only: 1 Capital or 2 Collateral. Leave it out for every other type.
|
Good to know
Links one record to one or more existing records on the same Event. Send one related item or an array of up to 100. All are linked, or none are. An already-linked record is left unchanged. Neither record is changed. Linking requires permission to edit the source record's area, and that area must not be locked on the Event. The related records only need to be readable: a record on a locked tab can be linked, a record on a hidden tab cannot.
Linking related items
A link connects two records on the same Event and works in both directions. The source is the record the link was added from. When you read a record's links, each entry describes the other record.
Types: 1 Task; 2 Playbook Activity; 3 Booth Service; 4 Shipment; 5 Asset Reservation; 6 Giveaway; 7 Sponsorship; 8 Misc. Expense / Credit; 9 Travel Reservation; 10 Attendee / Registration. GET /v1/references/related_item_types lists them with the types each can be linked to. For an Asset Reservation, also send the asset type: 1 Capital or 2 Collateral.
For GET /v1/related_items, source_item_type names the record whose links are listed, and related_item_name and related_item_exhibitday_url describe each linked record. Opening related_item_exhibitday_url checks the user's ExhibitDay access again.
Links are added and removed only with POST and DELETE /v1/related_items. General Tasks (Tasks without an Event) can't be linked. Records on hidden Event tabs can't be linked or read here. A record on a locked tab can be linked from an unlocked record, but its own links can't be changed while its area is locked. An Asset Reservation can be the source while the Event's Assets tab is visible and unlocked, including a reservation of an Asset shared with you by another workspace. A link works both ways: it is listed from both records, and posting a pair that is already linked from the other side changes nothing. Deleting either record removes its links, and moving a Task to another Event or making it a General Task removes the Task's links. Adding or removing a link counts as a change to both records (each gets a new revision, so an update that still expects the older revision is refused) and is recorded in the Event's history; it sends no email. When an Event is copied, links between records that were copied are copied too; links to records that were not copied are left out.
A Giveaway takes Asset Reservations only when its Source includes inventory: for PATCH /v1/events/giveaways, item_source_id 2 (Existing Inventory) or 3 (From a Supplier + Existing Inventory). Linking an Asset Reservation to a Supplier-only Giveaway is refused from either side.
curl -X POST "https://api.exhibitday.com/v1/related_items" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d "{\"source_item_type_id\":\"7\",\"source_item_id\":\"23456\",\"related_items\":[{\"related_item_type_id\":1,\"related_item_id\":67890},{\"related_item_type_id\":4,\"related_item_id\":45678}]}"
const response = await fetch("https://api.exhibitday.com/v1/related_items", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ "source_item_type_id": "7", "source_item_id": "23456", "related_items": [{"related_item_type_id":1,"related_item_id":67890},{"related_item_type_id":4,"related_item_id":45678}] })
});
const data = await response.json();
console.log(response.status, data);
import requests
import json
response = requests.post(
"https://api.exhibitday.com/v1/related_items",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"source_item_type_id": "7", "source_item_id": "23456", "related_items": json.loads("[{\"related_item_type_id\":1,\"related_item_id\":67890},{\"related_item_type_id\":4,\"related_item_id\":45678}]")},
)
print(response.status_code, response.json())
using System;
using System.Text.Json;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Net.Http.Json;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.PostAsync("https://api.exhibitday.com/v1/related_items",
JsonContent.Create(new { source_item_type_id = "7", source_item_id = "23456", related_items = JsonDocument.Parse("[{\"related_item_type_id\":1,\"related_item_id\":67890},{\"related_item_type_id\":4,\"related_item_id\":45678}]").RootElement.Clone() }));
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ExhibitDayExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.exhibitday.com/v1/related_items"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"source_item_type_id\":\"7\",\"source_item_id\":\"23456\",\"related_items\":[{\"related_item_type_id\":1,\"related_item_id\":67890},{\"related_item_type_id\":4,\"related_item_id\":45678}]}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}
<?php
$curl = curl_init('https://api.exhibitday.com/v1/related_items');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"source_item_type_id":"7","source_item_id":"23456","related_items":[{"related_item_type_id":1,"related_item_id":67890},{"related_item_type_id":4,"related_item_id":45678}]}',
]);
$response = curl_exec($curl);
if ($response === false) {
throw new RuntimeException(curl_error($curl));
}
echo curl_getinfo($curl, CURLINFO_HTTP_CODE) . PHP_EOL . $response;
curl_close($curl);
require 'net/http'
require 'uri'
uri = URI('https://api.exhibitday.com/v1/related_items')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
request['Content-Type'] = 'application/json'
request.body = '{"source_item_type_id":"7","source_item_id":"23456","related_items":[{"related_item_type_id":1,"related_item_id":67890},{"related_item_type_id":4,"related_item_id":45678}]}'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(request)
end
puts "#{response.code} #{response.body}"
package main
import (
"fmt"
"io"
"log"
"net/http"
"strings"
)
func main() {
request, err := http.NewRequest("POST", "https://api.exhibitday.com/v1/related_items", strings.NewReader("{\"source_item_type_id\":\"7\",\"source_item_id\":\"23456\",\"related_items\":[{\"related_item_type_id\":1,\"related_item_id\":67890},{\"related_item_type_id\":4,\"related_item_id\":45678}]}"))
if err != nil { log.Fatal(err) }
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
request.Header.Set("Content-Type", "application/json")
response, err := (&http.Client{}).Do(request)
if err != nil { log.Fatal(err) }
defer response.Body.Close()
body, err := io.ReadAll(response.Body)
if err != nil { log.Fatal(err) }
fmt.Printf("%d %s\n", response.StatusCode, body)
}
Unlink Related Items #
|
Unlink Related Items
Note: Inputs that do not apply to this operation, including the ignore-empty option, are ignored and reported in the X-API-Warnings response header.
| Name | Type | Required? | Description | Details |
|---|---|---|---|---|
| ids | String | Yes |
The link ID to remove, or a JSON array of up to 100 link IDs, such as [5551,5552,5553]. Send it in the query string (?ids=[5551,5552]) or in a JSON request body ({"ids":[5551,5552]}). All links in one request must belong to the same record. All are removed, or none are.
|
Good to know
Removes one or more links by their IDs. All links in one request must belong to the same record. All are removed, or none are. Both records keep their fields, costs, files and other links. Removing requires permission to edit that record's area, and that area must not be locked on the Event.
Linking related items
A link connects two records on the same Event and works in both directions. The source is the record the link was added from. When you read a record's links, each entry describes the other record.
Types: 1 Task; 2 Playbook Activity; 3 Booth Service; 4 Shipment; 5 Asset Reservation; 6 Giveaway; 7 Sponsorship; 8 Misc. Expense / Credit; 9 Travel Reservation; 10 Attendee / Registration. GET /v1/references/related_item_types lists them with the types each can be linked to. For an Asset Reservation, also send the asset type: 1 Capital or 2 Collateral.
For GET /v1/related_items, source_item_type names the record whose links are listed, and related_item_name and related_item_exhibitday_url describe each linked record. Opening related_item_exhibitday_url checks the user's ExhibitDay access again.
Links are added and removed only with POST and DELETE /v1/related_items. General Tasks (Tasks without an Event) can't be linked. Records on hidden Event tabs can't be linked or read here. A record on a locked tab can be linked from an unlocked record, but its own links can't be changed while its area is locked. An Asset Reservation can be the source while the Event's Assets tab is visible and unlocked, including a reservation of an Asset shared with you by another workspace. A link works both ways: it is listed from both records, and posting a pair that is already linked from the other side changes nothing. Deleting either record removes its links, and moving a Task to another Event or making it a General Task removes the Task's links. Adding or removing a link counts as a change to both records (each gets a new revision, so an update that still expects the older revision is refused) and is recorded in the Event's history; it sends no email. When an Event is copied, links between records that were copied are copied too; links to records that were not copied are left out.
A Giveaway takes Asset Reservations only when its Source includes inventory: for PATCH /v1/events/giveaways, item_source_id 2 (Existing Inventory) or 3 (From a Supplier + Existing Inventory). Linking an Asset Reservation to a Supplier-only Giveaway is refused from either side.
curl -X DELETE "https://api.exhibitday.com/v1/related_items?ids=5551" -H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch("https://api.exhibitday.com/v1/related_items?" + new URLSearchParams({ "ids": "5551" }), {
method: "DELETE",
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
console.log(response.status, data);
import requests
response = requests.delete(
"https://api.exhibitday.com/v1/related_items",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"ids": "5551"},
)
print(response.status_code, response.json())
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");
var response = await client.DeleteAsync("https://api.exhibitday.com/v1/related_items?ids=5551");
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ExhibitDayExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.exhibitday.com/v1/related_items?ids=5551"))
.header("Authorization", "Bearer YOUR_API_KEY")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}
<?php
$curl = curl_init('https://api.exhibitday.com/v1/related_items?ids=5551');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($curl);
if ($response === false) {
throw new RuntimeException(curl_error($curl));
}
echo curl_getinfo($curl, CURLINFO_HTTP_CODE) . PHP_EOL . $response;
curl_close($curl);
require 'net/http'
require 'uri'
uri = URI('https://api.exhibitday.com/v1/related_items?ids=5551')
request = Net::HTTP::Delete.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(request)
end
puts "#{response.code} #{response.body}"
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func main() {
request, err := http.NewRequest("DELETE", "https://api.exhibitday.com/v1/related_items?ids=5551", nil)
if err != nil { log.Fatal(err) }
request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
response, err := (&http.Client{}).Do(request)
if err != nil { log.Fatal(err) }
defer response.Body.Close()
body, err := io.ReadAll(response.Body)
if err != nil { log.Fatal(err) }
fmt.Printf("%d %s\n", response.StatusCode, body)
}