Add vendors to the Approved Software Register in one action
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"vendorIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({vendorIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors"
payload = { "vendorIds": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)ISMS
Add vendors to the Approved Software Register | Comp AI API
Adds the chosen vendors as approved software rows in one transaction. Vendors already listed are skipped, not duplicated. “Where it is used” is left.
POST
/
v1
/
isms
/
documents
/
{id}
/
approved-software
/
import-vendors
Add vendors to the Approved Software Register in one action
curl --request POST \
--url https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"vendorIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({vendorIds: ['<string>']})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/isms/documents/{id}/approved-software/import-vendors"
payload = { "vendorIds": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

