---
title: "Create a new monitoring set"
method: POST
path: "/monitoring-sets"
tags: ["Monitoring Sets"]
---

# Create a new monitoring set

`POST /monitoring-sets`

## Request

- Base URL: `https://trolie.example.com`
- URL: `https://trolie.example.com/monitoring-sets`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://no-server/oauth2` scopes: `write:monitoring-sets`

Create a new monitoring set. The server will assign a unique identifier and
source info to the monitoring set upon creation. This information will be
available in the monitoring set `source` header and in the HTTP `Location`
header.

A 409 Conflict may be returned depending on the implementation. For example,
if the monitoring set id that would be generated conflicts with an existing
monitoring set, as could be the case if the id was generated by the client.
As another example, a provided `alternate-identifiers` entry may conflict
with existing identifiers.

## Request body

- Request: Request body for creating a monitoring set. The server will assign an id and source upon successful creation. Note that any `alternate-identifiers` supplied in the request should be should be used by the server to define an alternate identifier for the associated with a power system resource. In this way monitoring sets can be used to introduce use case specific names for existing power system resources. The details of how alternate identifiers are managed and resolved are are out of scope for this specification. In particular how the `authority` of an alternate identifier is validated is implementation-specific and out of scope for this specification..
  - `name` string, required: A human-readable name for this monitoring set
  - `description` string, free-form: A description of this monitoring set
  - `power-system-resources` Names[], required: Collection of power system resource names
    - `resource-id` unknown, required
    - `alternate-identifiers` object[]
      - `name` string, required: Contains a identifier that is unique for an object in the context of an exchange between two grid operators.
      - `type` string: Type of the name being referenced. Corresponds to the IEC CIM `NameType` concept.
      - `authority` string: Contains a unique identifier for an entity, such as a grid operator or organization. This identifier is typically used in the context of data exchange between entities.
      - `mrid` string: Contains a identifier that is unique for an object in the context of an exchange between two grid operators.

## Response `201`

The monitoring set was created

- Response: See https://trolie.energy/concepts.html#monitoring-sets for info on the monitoring set concept in TROLIE. This representation is intended to be enough for consumers to read it and tell where the monitoring set came from, using metadata such as a source and an optional description. It also includes the list of resources included in the monitoring set, as well as all their known aliases.
  - `<<` unknown
  - `source` DataProvenance, required: Provides information about where the associated representation came from. *No functional aspects of the exchange are contingent upon this data.* However, this information is meant to support debugging and application support use cases, so implementors are encouraged to provide meaningful values. * `provider` identifies that entity, e.g., a Ratings Provider or Clearinghouse Provider, that created the object. The `provider`'s NERC id is recommended. * `last-updated` indicates the wall-clock time at the `provider` when the object was last modified. N.b. this is not when the message describing the object was sent or received, i.e., implementors should not simply insert the current timestamp here when preparing the object serialization. * `origin-id` is the identifier used by the `provider` to uniquely nominate the object. It is recommended but not required that this be a URI.
    - `provider` string, required: Contains a unique identifier for an entity, such as a grid operator or organization. This identifier is typically used in the context of data exchange between entities.
    - `last-updated` string, date-time, required: RFC 3339 date-time string with a maximum of 10 digits in the fractional seconds component, i.e., nanosecond precision.
    - `origin-id` string: Contains a identifier that is unique for an object in the context of an exchange between two grid operators.
  - `id` string, required: Contains a identifier that is unique for an object in the context of an exchange between two grid operators.

## Other responses

- `400`: Malformed request
- `401`: Unauthorized
- `403`: Access denied
- `406`: Not Acceptable (Content negotiation failed)
- `409`: Conflict
- `413`: Payload too large
- `415`: Unsupported media type
- `422`: Unprocessable content
- `429`: Too many requests (rate limiting)
- `500`: An unexpected error occurred
- `default`: An unexpected error occurred

## Changes

- **2026-09-23** `92311641b6b2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trolie/apis/transmission-ratings-and-operating-limits-information-exchan/changes/monitoring-sets/post.md)

---

[API](https://skmtc.dev/trolie/apis/transmission-ratings-and-operating-limits-information-exchan.md) - [All operations](https://skmtc.dev/trolie/apis/transmission-ratings-and-operating-limits-information-exchan/llms.txt) - [OpenAPI document](https://skmtc.dev/trolie/apis/transmission-ratings-and-operating-limits-information-exchan/revisions/92311641b6b2?raw)
