How to Update a List/Table attribute using Spectrum REST API?
book
Article ID: 182904
calendar_today
Updated On:
Products
CA Spectrum
Issue/Introduction
How to Update a List/Table attribute using Spectrum REST API?
Environment
Spectrum 10.4.1
SPCAPP - Spectrum Applications
Resolution
This functionality was introduced and is only available in the Spectrum 10.4.1 release. Below are the syntax for this REST call.
URL
http://<hostname>:<portnumber>/spectrum/restful/model/attr/update
HTTP Method
POST
Body
XML
Body Content
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<update-model-attrlist-request xmlns="http://www.ca.com/spectrum/restful/schema/request">
<model mh="<model_handle>"/>
<attribute-list id="<attribute_id>">
<instance oid="<instance_id_0>" value="<value>"/>
<instance oid="<instance_id_1>" value="<value>"/>
</attribute-list>
</update-model-attrlist-request>
Body Parameters
<model mh="<model_handle>"/>
Specifies the model to update.
<attribute-list id="<attribute_id>">
Specifies the attribute ID to update.
<instance oid="<instance_id_0>" value="<value>"/>
Specifies the instance id and values to update.
Feedback