Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
firstline1
linenumberstrue
curl --data-binary @unv-tmplt-Template1.zip "http://localhost:8080/uc/resources/universaltemplate/importtemplate" 
--header "Content-Type: application/octet-stream" --header "Authorization: Basic ****************"

...

Description

...

URI

...

HTTP Method

...

POST

...

Description

...

Creates a new Universal Event Template.

...

Example URI

...

Consumes Content-Type

...

application/xml, application/json

...

Produces Content-Type

...

n/a

...

Example

...

See Create, Modify, and Read a Universal Template: XML and JSON Examples, below.

...

Universal Event Template Properties

...

See Universal Event Template Properties.

...

Example Response

...

  • Status 200 /OK
    Successfully created the universal template with sysId {sysId}.
  • Status 400 /Bad Request
    Create universal template failed. (message).

...

The excludeRelated and retainSysIds properties are specified as attributes in the <universalTemplate> element of XML web services.

...

Description

...

URI

...

HTTP Method

...

DELETE

...

Description

...

Deletes a Universal Event Template.

...

URI Parameters

...

See Delete a Universal Template URI Parameters, below.

...

Example URI

...

Example Response

...

  • Status 200 /OK
    Universal template deleted successfully.
  • Status 400 /Bad Request
    Mutual exclusion violation. Cannot specify templatename and templateid at the same time.
  • Status 404 /Not Found
    A universal template with {name/id} does not exist.

...