Vai al contenuto principale
POST
/
api
/
v1
/
V-Ciso
/
incidents
/
{organizationid}
/
{incidentid}
/
attachments
Upload incident attachment
curl --request POST \
  --url https://app.aegister.com/api/v1/V-Ciso/incidents/{organizationid}/{incidentid}/attachments \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Aegister-Token: <api-key>' \
  --form 'file=<string>'
{
  "error": 0,
  "messages": "<array>",
  "data": {
    "id": 123,
    "original_name": "<string>",
    "content_type": "<string>",
    "size": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "download_url": "<string>"
  }
}

Autorizzazioni

X-Aegister-Token
string
header
obbligatorio

Parametri del percorso

incidentid
integer
obbligatorio
organizationid
integer
obbligatorio

Corpo

multipart/form-data
file
string<uri>
obbligatorio

The file to upload as an incident attachment.

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

Incident attachment object.