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
- 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
-
reason: string
Predefined reason in English or a user defined reason.
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
Created.
Root Schema : BlackoutReason
Type:
object
A single blackout reason.
Show Source
-
reasonDisplayName: string
Localized predefined reason or the user defined reason as provided by the user.
Match All
A single blackout reason.
A single blackout reason.
Show Source
Nested Schema : ReasonId
Type:
object
Reason id of a blackout.
Show Source
-
id: string
Reason id of a blackout.
Nested Schema : Reason
Type:
object
Reason of a blackout.
Show Source
-
reason: string
Predefined reason in English or a user defined reason.
Examples
400 Response
One of the given parameters is invalid.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
401 Response
Client is not authenticated.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
409 Response
Not authorized or resource already exists.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
500 Response
Internal error serving the request.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported
503 Response
Indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Response sent back in the case of an error.
Show Source
-
code: string
Status code of the error.Example:
IllegalArgument
-
message: string
A descriptive error message.Example:
argument given is not supported