POST
/
api
/
v1
/
organizations
/
{organizationid}
/
security-frameworks
/
{frameworkid}
/
documents
/
{controlid}
curl --request POST \
  --url https://app.aegister.com/api/v1/organizations/{organizationid}/security-frameworks/{frameworkid}/documents/{controlid} \
  --header 'Content-Type: */*' \
  --header 'X-Aegister-Token: <api-key>'
{
  "error": 0,
  "messages": [],
  "data": {
    "file_name": "xxxxxxxx.pdf",
    "file_path": "/api/v1/documents/organizations/1/security-frameworks/1/documents/C1/"
  }
}

Authorizations

X-Aegister-Token
string
header
required

Headers

Content-Disposition
string
default:attachment; filename=sample.pdf

Specify 'attachment' as content disposition and file name.

Path Parameters

controlid
string
required
frameworkid
integer
required
organizationid
integer
required

Body

*/* · file

The body is of type file.

Response

200
application/json
error
integer

Any value different from 0 indicates an error.
More details can be found in messages.

Required range: 0 <= x <= 0
Example:

0

messages
any[]

If error is 1, contains zero or more details on the error.

Example:
[]
data
object