Signature

global static void updateResources(
  List<Types.UpdateResourceInput> inputs,
  String library,
  String runAs
)
Parameters
ParameterDescription
inputs requiredList of Types.UpdateResourceInput objects, one per resource to update.
library
String
requiredType of library. Example — sharepoint. You can get this value from your Content Library.
runAs
String
optionalEmail Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser.

Return Type

void

Example

List<cldfs.Types.UpdateResourceInput> inputs = new List<cldfs.Types.UpdateResourceInput>();
Map<String, String> updates = new Map<String, String>();
updates.put('name', 'New Name');

cldfs.Resource resourceToUpdate = new cldfs.Resource(
  '68887db5ef0b3ca7534dbbd5',
  'folder',
  null,
  'cloudfiles',
  'workspace'
);

inputs.add(new cldfs.Types.UpdateResourceInput(resourceToUpdate, updates));
cldfs.Client.updateResources(inputs, 'cloudfiles', 'integrationUser');