Returned result, Example 1, Returned result example 1 – HP Intelligent Management Center Licenses User Manual

Page 194

Advertising
background image

Query parameters

Option elements.

options

Element type. Required when fieldType is 5. No default value.

Option ID.

options/id

Long integer type. Required. No default value.

Option value.

options/optionsValue

String type. Required. No default value.

Returned Result

Status codes

201 (Created): Success.

409 (Conflict): Failure. See

Error Codes

.”

Message header

If the operation succeeds, the Location field gives the URI of the new resource. The message body
is empty.

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/user/additionalInfo/3

Example 1

Add a user additional information definition of the option type.

Request

POST http://localhost:8080/imcrs/user/additionalInfo
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...

<userAdditionalInfo>
<fieldName>digits</fieldName>
<required>true</required>
<fieldType>5</fieldType>
<defaultValue>1</defaultValue>
<priority>3</priority>
<showForPreRegisterUser>false</showForPreRegisterUser>
<options>
<id>1</id>
<optionsValue>1</optionsValue>
</options>
<options>
<id>2</id>
<optionsValue>2</optionsValue>
</options>
</userAdditionalInfo>

Response

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/user/additionalInfo/1

194

User Management

Advertising