POST
/
inventory
curl --request POST \
  --url https://api.alerty.ai/inventory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "default": true,
  "resources": [
    {
      "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "type": "WEBSITE",
      "configuration": {
        "url": "<string>"
      }
    }
  ]
}'
{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "default": true,
  "resources": [
    {
      "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "type": "WEBSITE",
      "configuration": {
        "url": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
id
string
required

Unique identifier for the entity

Example:

"5df33a85-2b9c-40e3-8854-760ee3b8efc7"

createdAt
string
required
updatedAt
string
required
name
string
required

the inventory name

default
boolean
required

flag if the inventory is the default one

resources
object[]
required

the inventory resources list

description
string

the inventory description

Response

201
application/json
inventory created
id
string
required

Unique identifier for the entity

Example:

"5df33a85-2b9c-40e3-8854-760ee3b8efc7"

createdAt
string
required
updatedAt
string
required
name
string
required

the inventory name

default
boolean
required

flag if the inventory is the default one

resources
object[]
required

the inventory resources list

description
string

the inventory description