Switch an ISMS document between form and uploaded file
curl --request PATCH \
--url https://api.trycomp.ai/v1/isms/documents/{id}/content-source \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"contentSource": "uploaded"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({contentSource: 'uploaded'})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/content-source', 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}/content-source"
payload = { "contentSource": "uploaded" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)ISMS
Switch an ISMS document between form and | Comp AI API
Sets whether the document’s content is ‘generated’ from our form or is the ‘uploaded’ customer file. Switching is lossless — the form data and the uploaded.
PATCH
/
v1
/
isms
/
documents
/
{id}
/
content-source
Switch an ISMS document between form and uploaded file
curl --request PATCH \
--url https://api.trycomp.ai/v1/isms/documents/{id}/content-source \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"contentSource": "uploaded"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({contentSource: 'uploaded'})
};
fetch('https://api.trycomp.ai/v1/isms/documents/{id}/content-source', 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}/content-source"
payload = { "contentSource": "uploaded" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Path Parameters
Body
application/json
generated = build the document from our form and render it; uploaded = the customer-supplied file attached via the upload endpoint is the document.
Available options:
generated, uploaded Example:
"uploaded"
Response
200
Content source set; refreshed ISMS document
Was this page helpful?

