Skip to main content
POST
/
v1
/
org-chart
/
upload
Upload an image as the organization chart
curl --request POST \
  --url http://localhost:3333/v1/org-chart/upload \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "fileName": "<string>",
  "fileType": "<string>",
  "fileData": "<string>"
}
'

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Body

application/json
fileName
string
required

Original file name

fileType
string
required

MIME type of the file (e.g. image/png)

fileData
string
required

Base64-encoded file data

Response

201

The uploaded organization chart