addTags
Examples
Arguments
Argument
Description
Supported fields
Fields
Field
Description
Supported fields
Last updated
{
"input": {
"tagsInput": [
{
"name": "Custom Tag",
"displayName": "Custom Tag",
"tagId": "ox_tag_1"
}
]
}
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "mutation AddTags($input: AddTagInput!) { addTags(input: $input) { tags { tagId name displayName tagType createdBy createdAt updatedAt tagCategory deploymentModel purpose email } failedTags { name failedReason } } }",
"variables": {
"input": {
"tagsInput": [
{
"name": "Custom Tag",
"displayName": "Custom Tag",
"tagId": "ox_tag_1"
}
]
}
}
}'const query = 'mutation AddTags($input: AddTagInput!) { addTags(input: $input) { tags { tagId name displayName tagType createdBy createdAt updatedAt tagCategory deploymentModel purpose email } failedTags { name failedReason } } }';
fetch("https://api.cloud.ox.security/api/apollo-gateway", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "YOUR_API_TOKEN"
},
body: JSON.stringify({
query: query,
// This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
variables: {
input: {
tagsInput: [
{
name: "Custom Tag",
displayName: "Custom Tag",
tagId: "ox_tag_1"
}
]
}
}
})
})
.then(response => response.json())
.then(result => console.log(JSON.stringify(result, null, 2)))
.catch(error => console.error('Error:', error));import requests
query = 'mutation AddTags($input: AddTagInput!) { addTags(input: $input) { tags { tagId name displayName tagType createdBy createdAt updatedAt tagCategory deploymentModel purpose email } failedTags { name failedReason } } }'
response = requests.post(
"https://api.cloud.ox.security/api/apollo-gateway",
headers={
"Content-Type": "application/json",
"Authorization": "YOUR_API_TOKEN"
},
json={
"query": query,
# This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
"variables": {
"input": {
"tagsInput": [
{
"name": "Custom Tag",
"displayName": "Custom Tag",
"tagId": "ox_tag_1"
}
]
}
}
}
)
if response.status_code == 200:
result = response.json()
print(result)
else:
print(f"Error: {response.status_code}")
print(response.text)