---
title: "Create a new interest"
method: POST
path: "/api/interests"
---

# Create a new interest

`POST /api/interests`

Creates a new interest with a Sen query to select objects

## Request body

- object
  - `name` string, required — Name of the interest
  - `query` string, required — Sen query to select objects
  - `autoSubscribe` object
    - `properties` boolean — Whether to automatically subscribe to properties
    - `events` boolean — Whether to automatically subscribe to events

## Response `200`

Interest created successfully

- object
  - `name` string — Name of the created interest

## Other responses

- `400` — Bad request. Invalid query or parameters
- `401` — Unauthorized, missing or invalid JWT token

---

[API](https://skmtc.net/airbus/apis/openapi-document-for-rest-component.md) · [All operations](https://skmtc.net/airbus/apis/openapi-document-for-rest-component/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/airbus/openapi-document-for-rest-component/versions/c9a79ab26d8c/schema)
