addAttributeValue
This method allows adding/editing:
- Attribute values
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\admin\AddAttribValueRequestType.java |
| Return | web\wwwroot\ws\java\admin\AddAttribValueResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| IDATTRIBUTE | X | Attribute ID #. |
| VLATTRIBUTE | X¹ | Attribute value. |
| FGDEFAULTVALUE | X¹ | Use as default: [1 - Yes, 2 - No]. |
| IDUSER | X | User ID. |
| IDDATASET | X² | Dataset ID #. |
| NMFILTERFIELD | X² | Filter field. |
info
- X¹ - Required when the attribute type is “List of values”.
- X² - Required when the attribute type is “Third-party”.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:addAttribValue>
<!--You may enter the following 7 items in any order-->
<urn:IDATTRIBUTE>?</urn:IDATTRIBUTE>
<urn:VLATTRIBUTE>?</urn:VLATTRIBUTE>
<urn:FGDEFAULTVALUE>?</urn:FGDEFAULTVALUE>
<urn:IDUSER>?</urn:IDUSER>
<urn:IDDATASET>?</urn:IDDATASET>
<urn:NMFILTERFIELD>?</urn:NMFILTERFIELD>
</urn:addAttribValue>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| return | SUCCESS: an attribute value is created. |
| FAILURE: message regarding the error that occurred. |