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
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
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
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
401 Response
client is not authenticated
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
409 Response
not authorized or target already exists
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
500 Response
internal error serving the request
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string
503 Response
indicates that a required service is not available.
Root Schema : ErrorResponse
Type:
object
Error response
Show Source
-
code(required): string
A short error code that defines the error, meant for programmatic parsing
-
message(required): string
A human-readable error string