Creates tags

post

/serviceapi/entityModel/uds/tags

Creates a Tag with the given key and value.

Request

Supported Media Types
Body ()
Root Schema : schema
Type: array
Show Source
  • UdsTag

    Describes a tag. Tags are used to identify and query entities. Tags are managed using key/value pairs.

Nested Schema : UdsTag
Type: object

Describes a tag. Tags are used to identify and query entities. Tags are managed using key/value pairs.

Show Source
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

Create a list of Tags:

Payload:

[
  {
    "key":"loc",
    "value":"nyc"
  },
  {
    "key":"org",
    "value":"dev"
  },
  {
    "key":"org",
    "value":"hr"
  }
]
curl -u ${OMC_USERNAME}:${PASSWORD} -X POST -H "Content-Type:application/json" -d "@example.json" "https://serverurl/serviceapi/entityModel/uds/tags"
Back to Top