curl --request POST \
--url https://api.mentionlab.io/api/v1/execution-tags/many \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"tags": [
{
"name": "important",
"color": "#3B82F6"
},
{
"name": "archived",
"color": "#9CA3AF"
}
],
"confirmVectorization": true
}
'import requests
url = "https://api.mentionlab.io/api/v1/execution-tags/many"
payload = {
"tags": [
{
"name": "important",
"color": "#3B82F6"
},
{
"name": "archived",
"color": "#9CA3AF"
}
],
"confirmVectorization": True
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tags: [{name: 'important', color: '#3B82F6'}, {name: 'archived', color: '#9CA3AF'}],
confirmVectorization: true
})
};
fetch('https://api.mentionlab.io/api/v1/execution-tags/many', 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.mentionlab.io/api/v1/execution-tags/many",
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([
'tags' => [
[
'name' => 'important',
'color' => '#3B82F6'
],
[
'name' => 'archived',
'color' => '#9CA3AF'
]
],
'confirmVectorization' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/v1/execution-tags/many"
payload := strings.NewReader("{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/v1/execution-tags/many")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/execution-tags/many")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}"
response = http.request(request)
puts response.read_body[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"project": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
"name": "important",
"color": "#3B82F6",
"matchingMode": "exact",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Create multiple execution tags
Creates multiple execution tags from the supplied array.
curl --request POST \
--url https://api.mentionlab.io/api/v1/execution-tags/many \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"tags": [
{
"name": "important",
"color": "#3B82F6"
},
{
"name": "archived",
"color": "#9CA3AF"
}
],
"confirmVectorization": true
}
'import requests
url = "https://api.mentionlab.io/api/v1/execution-tags/many"
payload = {
"tags": [
{
"name": "important",
"color": "#3B82F6"
},
{
"name": "archived",
"color": "#9CA3AF"
}
],
"confirmVectorization": True
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tags: [{name: 'important', color: '#3B82F6'}, {name: 'archived', color: '#9CA3AF'}],
confirmVectorization: true
})
};
fetch('https://api.mentionlab.io/api/v1/execution-tags/many', 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.mentionlab.io/api/v1/execution-tags/many",
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([
'tags' => [
[
'name' => 'important',
'color' => '#3B82F6'
],
[
'name' => 'archived',
'color' => '#9CA3AF'
]
],
'confirmVectorization' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/v1/execution-tags/many"
payload := strings.NewReader("{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/v1/execution-tags/many")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/v1/execution-tags/many")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n {\n \"name\": \"important\",\n \"color\": \"#3B82F6\"\n },\n {\n \"name\": \"archived\",\n \"color\": \"#9CA3AF\"\n }\n ],\n \"confirmVectorization\": true\n}"
response = http.request(request)
puts response.read_body[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"project": "a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6",
"name": "important",
"color": "#3B82F6",
"matchingMode": "exact",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Headers
Project ID to specify the project context
Body
List of tag job executions to create in a single batch. Must contain at least one item; each entry is validated individually.
Show child attributes
Show child attributes
[
{ "name": "important", "color": "#3B82F6" },
{ "name": "archived", "color": "#9CA3AF" }
]
Acknowledges that enabling semantic matching starts indexing of the project recent responses. Required only above a size threshold.
true
Response
Unique identifier for the tag
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
The project this tag belongs to
"a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6"
Name of the tag
"important"
Color of the tag in hex format
"#3B82F6"
How the tag is matched to responses: exact links only responses whose text contains the tag name, semantic also links responses by meaning.
exact, semantic "exact"
ID of the tag group node this tag is filed under; null when ungrouped.