Modifying resources

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19
  1. Submit a GET request for the resource you want to modify.
    In the request, include the verbose=false query parameter on the resource URL (or omit the verbose parameter to accept the default of false). This ensures that the response body includes only the properties whose values you can set.
  2. In the response body from the GET request, change property values as needed.
  3. Submit the POST request for the resource, using the entire modified response body as the request body.
By modifying a resource in this way, you ensure that all the property values are set as expected. A possible drawback to this method is that someone else can modify the resource in between your GET and POST requests. In this case, the values in your POST request will overwrite any modifications. However, this may, in fact, be the result you want.