Create metadata queue item
curl --request POST \
--url https://third-party.etrnl.app/v1/url-groups/{id}/queue \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"tagMetadata": "<string>"
}
'import requests
url = "https://third-party.etrnl.app/v1/url-groups/{id}/queue"
payload = {
"displayName": "<string>",
"tagMetadata": "<string>"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({displayName: '<string>', tagMetadata: '<string>'})
};
fetch('https://third-party.etrnl.app/v1/url-groups/{id}/queue', 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://third-party.etrnl.app/v1/url-groups/{id}/queue",
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([
'displayName' => '<string>',
'tagMetadata' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <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://third-party.etrnl.app/v1/url-groups/{id}/queue"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<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.post("https://third-party.etrnl.app/v1/url-groups/{id}/queue")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://third-party.etrnl.app/v1/url-groups/{id}/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
success: true,
queueItem: {
id: 399,
tagMetadata: {
nftId: 123
},
displayName: "John's NFT data",
pageId: null,
groupId: 190,
organizationId: 1275,
fulfillmentDate: null,
fulfilled: false
}
}
URL Groups
Create metadata queue item
POST
/
v1
/
url-groups
/
{id}
/
queue
Create metadata queue item
curl --request POST \
--url https://third-party.etrnl.app/v1/url-groups/{id}/queue \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"tagMetadata": "<string>"
}
'import requests
url = "https://third-party.etrnl.app/v1/url-groups/{id}/queue"
payload = {
"displayName": "<string>",
"tagMetadata": "<string>"
}
headers = {
"API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({displayName: '<string>', tagMetadata: '<string>'})
};
fetch('https://third-party.etrnl.app/v1/url-groups/{id}/queue', 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://third-party.etrnl.app/v1/url-groups/{id}/queue",
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([
'displayName' => '<string>',
'tagMetadata' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-Key: <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://third-party.etrnl.app/v1/url-groups/{id}/queue"
payload := strings.NewReader("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<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.post("https://third-party.etrnl.app/v1/url-groups/{id}/queue")
.header("API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://third-party.etrnl.app/v1/url-groups/{id}/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"<string>\",\n \"tagMetadata\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
success: true,
queueItem: {
id: 399,
tagMetadata: {
nftId: 123
},
displayName: "John's NFT data",
pageId: null,
groupId: 190,
organizationId: 1275,
fulfillmentDate: null,
fulfilled: false
}
}
Add an item to this URL group’s metadata queue.
Headers
URL Params
Body
This is a JSON object that defines additional information that will be tied to the tag that’s programmed for this queue item.
{
success: true,
queueItem: {
id: 399,
tagMetadata: {
nftId: 123
},
displayName: "John's NFT data",
pageId: null,
groupId: 190,
organizationId: 1275,
fulfillmentDate: null,
fulfilled: false
}
}