Upload an image as the organization chart
POST
/v1/org-chart/upload
const url = 'https://api.varman.io/v1/org-chart/upload';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"fileName":"example","fileType":"example","fileData":"example"}'};
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/org-chart/upload \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "fileName": "example", "fileType": "example", "fileData": "example" }'Upload an image as the organization chart in Varman. Manage organization chart metadata and evidence used for governance, accountability, and audit readiness.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Organization ID (required for session auth, optional for API key auth)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fileName
required
Original file name
string
fileType
required
MIME type of the file (e.g. image/png)
string
fileData
required
Base64-encoded file data
string
Example generated
{ "fileName": "example", "fileType": "example", "fileData": "example"}Responses
Section titled “Responses”The uploaded organization chart