To set the value of a Nucleus component property, send a Legacy REST Web Services request as described in the following table.

Request Component

Value

HTTP Method

POST or PUT

Functional Parameters

Include the new value for the property.

Use the positional parameter name arg1 for the value. See Positional Parameters.

URL

Include the component pathname in the application path after /rest/bean/. Include the name of the property at the end of the path. See Nucleus Components.

The following example shows a Legacy REST Web Services request that sets the value of the atg/userprofiling/passwordchecker/PasswordRuleChecker.enabled property.

curl -v -b cookies.txt -X POST \
-H "Content-Type: application/xml" \
-d "<parameters><arg1>false</arg1></parameters>" \
http://myserver:8080/rest/bean/atg/userprofiling/passwordchecker/
PasswordRuleChecker/enabled

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> POST /rest/bean/atg/userprofiling/passwordchecker/PasswordRuleChecker/
enabled HTTP/1.1
> User-Agent: curl/7.21.1 (i386-pc-win32) libcurl/7.21.1 zlib/1.2.5
> Host: myserver:8080
> Accept: */*
> Cookie: JSESSIONID=7205768051AC55AAFD5020D8931C71A7
> Content-Type: application/xml
> Content-Length: 43
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< X-ATG-Version: version=
QVRHUGxhdGZvcm0vMTAuMCxTZXJ2aWNlLzEwLjAsQ0FGLzEwLjAgWyBQbGF0Zm9ybUxp
Y2Vuc2UvMCBTZWxmU2VydmljZUxpY2Vuc2UvMCAgXQ==
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Tue, 26 Oct 2010 14:58:28 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

<atgResponse>true</atgResponse>
* Connection #0 to host myserver left intact
* Closing connection #0

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices