Delete (deactivate) a trust portal document
POST
/v1/trust-portal/documents/{documentId}/delete
const url = 'https://api.varman.io/v1/trust-portal/documents/example/delete';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"organizationId":"org_6914cd0e16e4c7dccbb54426"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/trust-portal/documents/example/delete \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "organizationId": "org_6914cd0e16e4c7dccbb54426" }'Delete (deactivate) a trust portal document in Varman. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”documentId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
organizationId
required
Organization ID that owns the document
string
Example
org_6914cd0e16e4c7dccbb54426Responses
Section titled “Responses”Document deleted successfully
Media typeapplication/json
object
success
boolean
Example generated
{ "success": true}