How to add Additional Properties of a Service via REST API call?
search cancel

How to add Additional Properties of a Service via REST API call?

book

Article ID: 265751

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The service properties page has a section for additional properties as shown in the image below. How to use REST API calls to add or update the additional properties?

Environment

Release: 10.1 

Product: Gateway

Resolution

There is no separate REST API call to just add the additional properties. It can be added while updating the existing serving with the PUT method.

Here is the example element for adding additional properties:

<l7:Property key="property.ID">
      <l7:StringValue>34921</l7:StringValue>
</l7:Property>

In this example, the ID is the name of the additional property. You can add this under the properties element for an existing service when updating the service.

<l7:Properties>
.
.
.

<l7:Property key="property.ID">
      <l7:StringValue>34921</l7:StringValue>
</l7:Property>

.
.
.
</l7:Properties>

 

Once the property is added, it will be like this: