Application Programming Interface Guide > Web Services Operations > Operations Reference > updateResourceEnabled
 
updateResourceEnabled
Update the enabled state of a resource. DATA_SOURCE and TRIGGER resources can be enabled or disabled.
Note: This web services operation is different from the procedure of the same name, which is in the resource tree under /lib/resource.
Location
/services/webservices/system/admin/resource/operations/
Request Elements
path: The path to the resource.
type: The resource type either DATA_SOURCE or TRIGGER.
detail: The level of detail to include in the response. Valid values are NONE, SIMPLE, and FULL.
enabled: If TRUE, the resource becomes enabled. If FALSE, the resource becomes disabled.
Response Elements
resources: List of the updated resources. See Resources Element.
Faults
IllegalArgument: If the path is malformed, or the type or detail is illegal.
IllegalState: If the target resource does not support enabling or disabling. DATA_SOURCE and TRIGGER resources can be enabled or disabled.
NotFound: If the target resource or any portion of path does not exist.
Security: If the user does not have READ access on all items in path other than the last one.
Security: If the user does not have WRITE access to the last item in path.
Security: If the user does not have the ACCESS_TOOLS right.