Update catalog categories

Details

URI /catalog/<catalog_id>/category/<category_id>
Method PUT
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. See Get userIdentifier for the steps required to get the userIdentifier value.

Returns 200 - Ok (Indicates the REST call executed without error. See XML return content for details on categories updated.)
401 - Not authorized
404 - Object not found
500 - Server exception

Note that any CatalogCategory elements not specified in the request body will be left unchanged.

Example

The following URL was sent:

https://<host>:<port>/csa/rest/catalog/8a81818f3d02fb7e013d0308894a0004/ category/8a81818f3d128500013d1341a5c6000d ?userIdentifier=90d96588360da0c701360da0f1d5f483

The following XML was sent in the request:


<CatalogCategory>
  <displayName>Changing first example category name</displayName>
  <iconUrl>/catalog/category/x.png</iconUrl>
  <description>New description for first example category</description>
</CatalogCategory>

The following XML was returned:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Catalog>
  <id>8a81818f3d02fb7e013d0308894a0004</id>
  <isCriticalSystemObject>false</isCriticalSystemObject>
  <description>Default catalog for the organization.</description>
  <iconUrl>
    /csa/images/library/briefcase-consumer_default_img-60.png
  </iconUrl>
  <name>Catalog_QA_ORG</name>
  <displayName>QA Org Catalog</displayName>
  ...
  <catalogCategory> ... </catalogCategory>
  ...
  <catalogCategory>
    <id>8a81818f3d128500013d1341a5c6000d</id>
    <isCriticalSystemObject>false</isCriticalSystemObject>
    <description>description for catalog category</description>
    <iconUrl>/catalog/category/x.png</iconUrl>
    <name>CHANGING_FIRST_EXAMPLE_CATEGORY_NAME</name>
    <displayName>Changing first example category name</displayName>
    <disabled>false</disabled>
  </catalogCategory>
  ...
</Catalog>