Create a new global target property

post

https://EM_HOST:8080/em/api/globalTargetProperties

This api creates a new global target property resource with the given data. If the resource already exists an error is returned. Note - For user defined properties the name and the displayName are the same.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Payload needed for a target creation request.
Show Source
Nested Schema : validValues
Type: array
the valid values for this property
Show Source
Example:
[
    "My Value",
    "My Other Value"
]
Back to Top

Response

Supported Media Types

201 Response

Created
Body ()
Root Schema : GlobalTargetProperty
Type: object
This is the representation of an EM target resource.
Show Source
Nested Schema : validValues
Type: array
the valid values for this property
Show Source
Example:
[
    "London",
    "Paris",
    "Rome"
]

400 Response

illegal arguments or incomplete resource definition
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

401 Response

client is not authenticated
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

409 Response

not authorized or target already exists
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

internal error serving the request
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

indicates that a required service is not available.
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top