Skip to main content
POST
/
v1
/
patterns
Create Pattern
curl --request POST \
  --url https://api.example.com/v1/patterns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "status": "emerging",
  "fingerprint": {},
  "tags": [
    "<string>"
  ],
  "issue_ids": [
    "<string>"
  ],
  "risk_score": 0,
  "confidence": 0.5
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Required string length: 1 - 200
status
enum<string>
default:emerging
Available options:
emerging,
active,
mitigating,
resolved
fingerprint
Fingerprint · object
tags
string[]
Maximum array length: 20
issue_ids
string[]
risk_score
integer
default:0
Required range: 0 <= x <= 100
confidence
number
default:0.5
Required range: 0 <= x <= 1

Response

Successful Response