To update properties of a repository item, send a REST Web Services request as described in the following table.

Request Component

Value

HTTP Method

PUT

Functional Parameters

Include the new values for each property you are updating as functional parameters with the REST Web Services request.

URL

Include the component pathname of the repository in the application path after /rest/repository/. Include the name of the item type and the item identifier at the end of the path.

The following example shows a REST Web Services request that updates two properties of an existing repository item in the /atg/userprofiling/ProfileAdapterRepository repository.

curl -v -b cookies.txt -X PUT \
-H "Content-Type: application/xml" \
-d "<parameters><middleName>Desire</middleName><email>agoldie@example.com</email></parameters>" \
http://myserver:8080/rest/repository/atg/userprofiling/ProfileAdapterRepository/user/130034

* About to connect() to myserver port 8080 (#0)
*   Trying 12.34.567.890... connected
* Connected to myserver (12.34.567.890) port 8080 (#0)
> PUT /rest/repository/atg/userprofiling/ProfileAdapterRepository/user/130034 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: DYN_USER_ID=140003; JSESSIONID=B6D3509A03881D9CE1A1370434AD18CB; DYN_USER_CONFIRM=1231cf3e7573bf936dbd29dbbbfe150b
> Content-Type: application/xml
> Content-Length: 90
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
* Replaced cookie JSESSIONID="6A9888BA9F4035AF606AE7E40A435451" for domain myserver, path /, expire 0
< Set-Cookie: JSESSIONID=6A9888BA9F4035AF606AE7E40A435451; Path=/
< X-ATG-Version: version=QVRHUGxhdGZvcm0vMTAuMCxDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzEwLjAgWyBQbGF0Zm
9ybUxpY2Vuc2UvMCBCMkNMaWNlbnNlLzAgIF0=
< Content-Type: application/xml;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 01 Nov 2010 19:40:41 GMT
<
<?xml version="1.0" encoding="UTF-8"?>

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