Vai al contenuto principale
POST
/
api
/
v1
/
organizations
/
{organizationid}
/
security-frameworks
/
{frameworkid}
/
documents
/
{controlid}
cURL
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>' \
  --data '"<string>"'
{
  "error": 0,
  "messages": "<array>",
  "data": {
    "file_name": "<string>",
    "file_path": "<string>"
  }
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Intestazioni

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

Specify 'attachment' as content disposition and file name.

Parametri del percorso

controlid
string
obbligatorio
frameworkid
integer
obbligatorio
organizationid
integer
obbligatorio

Corpo

*/*

The body is of type file.

Risposta

error
integer

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

Intervallo richiesto: 0 <= x <= 0
Esempio:

0

messages
array

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

Esempio:
[]
data
object