Setting Resource Attribute Values

You can set the values of resource attributes using objectAPI functions.

The following diagram shows an example of how calls to the OrgResourceService functions can be used to add values to attributes.

Setting Resource Attribute Values

Procedure

  1. Search for resources using either findByEntity or findByName.

    The search request can include either one or more organization model entities, or resource names, for which associated resources are returned.

  2. Get details, including all current attribute values, for the desired resources using the getResource function.
  3. Use the updateResource function to set any attribute values for the desired resources. (You can also add or remove privileges and capabilities, or assign or remove the resources from the specified groups and positions using the updateResources function.)

    The response returns all details for the updated resources.