Skip to main content
POST
/
anomalies
/
v3
/
ad
/
library
/
import
Create an anomaly
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/anomalies/v3/ad/library/import \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: multipart/form-data' \
  --header 'x-session-token: <x-session-token>' \
  --form file='@example-file'
{
  "data": {
    "count": 42
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
string
required

Content type, must be "multipart/form-data".

Pattern: ^multipart\/form-data.*
x-session-token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Body

multipart/form-data

Details required to create an anomaly

file
file
required

Response

201 - application/json

The anomalies have been created

data
object
required