Skip to content

API Explorer

Interactive API Explorer

Try out the TrustView API directly from your browser. Click Authorize, enter your API key, then expand any endpoint and click Try it out.


Code Examples

Pick your language and copy the snippet. Replace tvw_sk_live_your_key_here with your actual API key.


Vendors

List vendors

GET /external/smart-inventory/vendor/list

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/vendor/list \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/vendor/list",
  {
    headers: { "X-API-Key": "tvw_sk_live_your_key_here" },
  }
);
const vendors = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/list');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/vendor/list",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
vendors = response.json()
Response 200
[
  {
    "uniqueId": "6a054b8b9ae1a",
    "name": "Acme Cloud Services",
    "status": "active"
  }
]

Create a vendor

POST /external/smart-inventory/vendor/new

curl -X POST https://nightly.api.trustview.eu/external/smart-inventory/vendor/new \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Cloud Services", "description": "<p>Primary cloud vendor</p>", "active": true}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/vendor/new",
  {
    method: "POST",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      name: "Acme Cloud Services",
      description: "<p>Primary cloud vendor</p>",
      active: true,
    }),
  }
);
const vendor = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'name' => 'Acme Cloud Services',
    'description' => '<p>Primary cloud vendor</p>',
    'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.post(
    "https://nightly.api.trustview.eu/external/smart-inventory/vendor/new",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={
        "name": "Acme Cloud Services",
        "description": "<p>Primary cloud vendor</p>",
        "active": True,
    },
)
vendor = response.json()

Get a vendor

GET /external/smart-inventory/vendor/{vendor}/item

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/item \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/item",
  {
    headers: { "X-API-Key": "tvw_sk_live_your_key_here" },
  }
);
const vendor = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/item');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/item",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
vendor = response.json()

Update a vendor

PATCH /external/smart-inventory/vendor/{vendor}/edit

curl -X PATCH https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/edit \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Cloud Services (updated)"}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/edit",
  {
    method: "PATCH",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ name: "Acme Cloud Services (updated)" }),
  }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Acme Cloud Services (updated)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.patch(
    "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/edit",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={"name": "Acme Cloud Services (updated)"},
)

Delete a vendor

DELETE /external/smart-inventory/vendor/{vendor}/delete

curl -X DELETE https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/delete \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/delete",
  { method: "DELETE", headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.delete(
    "https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/delete",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)

Assets

List assets

GET /external/smart-inventory/asset/list

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/asset/list \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/asset/list",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const assets = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/list');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/asset/list",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
assets = response.json()
Response 200
[
  {
    "uniqueId": "6a054b8b9ae1a",
    "name": "Customer Database",
    "status": "active"
  }
]

Create an asset

POST /external/smart-inventory/asset/new

curl -X POST https://nightly.api.trustview.eu/external/smart-inventory/asset/new \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Customer Database", "description": "<p>Main customer data store</p>", "active": true}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/asset/new",
  {
    method: "POST",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      name: "Customer Database",
      description: "<p>Main customer data store</p>",
      active: true,
    }),
  }
);
const asset = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'name' => 'Customer Database',
    'description' => '<p>Main customer data store</p>',
    'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.post(
    "https://nightly.api.trustview.eu/external/smart-inventory/asset/new",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={
        "name": "Customer Database",
        "description": "<p>Main customer data store</p>",
        "active": True,
    },
)
asset = response.json()

Get an asset

GET /external/smart-inventory/asset/{asset}/item

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/item \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/item",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const asset = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/item');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/item",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
asset = response.json()

Update an asset

PATCH /external/smart-inventory/asset/{asset}/edit

curl -X PATCH https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/edit \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Customer Database (EU region)"}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/edit",
  {
    method: "PATCH",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ name: "Customer Database (EU region)" }),
  }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Customer Database (EU region)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.patch(
    "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/edit",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={"name": "Customer Database (EU region)"},
)

Delete an asset

DELETE /external/smart-inventory/asset/{asset}/delete

curl -X DELETE https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/delete \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/delete",
  { method: "DELETE", headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.delete(
    "https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/delete",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)

Processes (ROPA)

List processes

GET /external/smart-inventory/process/list

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/process/list \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/process/list",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const processes = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/list');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/process/list",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
processes = response.json()
Response 200
[
  {
    "uniqueId": "6a054b8b9ae1a",
    "name": "Employee onboarding",
    "status": "active"
  }
]

Create a process

POST /external/smart-inventory/process/new

curl -X POST https://nightly.api.trustview.eu/external/smart-inventory/process/new \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Employee onboarding", "description": "<p>Onboarding workflow</p>", "active": true}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/process/new",
  {
    method: "POST",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      name: "Employee onboarding",
      description: "<p>Onboarding workflow</p>",
      active: true,
    }),
  }
);
const process = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'name' => 'Employee onboarding',
    'description' => '<p>Onboarding workflow</p>',
    'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.post(
    "https://nightly.api.trustview.eu/external/smart-inventory/process/new",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={
        "name": "Employee onboarding",
        "description": "<p>Onboarding workflow</p>",
        "active": True,
    },
)
process = response.json()

Get a process

GET /external/smart-inventory/process/{ropa}/item

curl -X GET https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/item \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/item",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const process = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/item');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/item",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
process = response.json()

Update a process

PATCH /external/smart-inventory/process/{ropa}/edit

curl -X PATCH https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/edit \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Employee onboarding (revised)"}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/edit",
  {
    method: "PATCH",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ name: "Employee onboarding (revised)" }),
  }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Employee onboarding (revised)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.patch(
    "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/edit",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={"name": "Employee onboarding (revised)"},
)

Delete a process

DELETE /external/smart-inventory/process/{ropa}/delete

curl -X DELETE https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/delete \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/delete",
  { method: "DELETE", headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.delete(
    "https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/delete",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)

Tasks

List tasks

GET /external/task/framework/{framework}/list

curl -X GET https://nightly.api.trustview.eu/external/task/framework/1/list \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/task/framework/1/list",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const total = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/framework/1/list');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/task/framework/1/list",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
total = response.json()

Create a task

POST /external/task/framework/{framework}/new

curl -X POST https://nightly.api.trustview.eu/external/task/framework/1/new \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Review data retention policy",
    "description": "Annual review of retention schedules",
    "priority": 3,
    "labels": [],
    "startDate": "2026-06-01",
    "dueDate": "2026-06-30",
    "departmentId": 1,
    "gaps": []
  }'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/task/framework/1/new",
  {
    method: "POST",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      title: "Review data retention policy",
      description: "Annual review of retention schedules",
      priority: 3,
      labels: [],
      startDate: "2026-06-01",
      dueDate: "2026-06-30",
      departmentId: 1,
      gaps: [],
    }),
  }
);
const task = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/framework/1/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'title' => 'Review data retention policy',
    'description' => 'Annual review of retention schedules',
    'priority' => 3,
    'labels' => [],
    'startDate' => '2026-06-01',
    'dueDate' => '2026-06-30',
    'departmentId' => 1,
    'gaps' => [],
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.post(
    "https://nightly.api.trustview.eu/external/task/framework/1/new",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={
        "title": "Review data retention policy",
        "description": "Annual review of retention schedules",
        "priority": 3,
        "labels": [],
        "startDate": "2026-06-01",
        "dueDate": "2026-06-30",
        "departmentId": 1,
        "gaps": [],
    },
)
task = response.json()

Get a task

GET /external/task/{taskUniqueId}/item

curl -X GET https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/item \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/item",
  { headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
const task = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/item');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.get(
    "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/item",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)
task = response.json()

Update a task

PATCH /external/task/{taskUniqueId}/edit

curl -X PATCH https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit \
  -H "X-API-Key: tvw_sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"title": "Review data retention policy (Q2)"}'
const res = await fetch(
  "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit",
  {
    method: "PATCH",
    headers: {
      "X-API-Key": "tvw_sk_live_your_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ title: "Review data retention policy (Q2)" }),
  }
);
const task = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: tvw_sk_live_your_key_here',
    'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['title' => 'Review data retention policy (Q2)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests

response = requests.patch(
    "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
    json={"title": "Review data retention policy (Q2)"},
)
task = response.json()

Delete a task

DELETE /external/task/{taskUniqueId}/delete

curl -X DELETE https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/delete \
  -H "X-API-Key: tvw_sk_live_your_key_here"
const res = await fetch(
  "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/delete",
  { method: "DELETE", headers: { "X-API-Key": "tvw_sk_live_your_key_here" } }
);
$ch = curl_init('https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
import requests

response = requests.delete(
    "https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/delete",
    headers={"X-API-Key": "tvw_sk_live_your_key_here"},
)