Create a new blackout reason.

post

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/blackouts/reasons

This API creates a new user defined blackout reason

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Payload to create a new blackout reason.
Match All
Payload to create a new blackout reason.
Show Source
Nested Schema : Reason
Type: object
Reason of a blackout.
Show Source
Examples

Back to Top

Response

Supported Media Types

201 Response

Created.
Body ()
Root Schema : BlackoutReason
Type: object
A single blackout reason.
Show Source
Match All
A single blackout reason.
A single blackout reason.
Show Source
Nested Schema : ReasonId
Type: object
Reason id of a blackout.
Show Source
Nested Schema : Reason
Type: object
Reason of a blackout.
Show Source
Examples

400 Response

One of the given parameters is invalid.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

401 Response

Client is not authenticated.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

409 Response

Not authorized or resource already exists.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

500 Response

Internal error serving the request.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source

503 Response

Indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error.
Show Source
Back to Top