Application Programming Interface Guide > Web Services Operations > Operations Reference > rebindResources
 
rebindResources
Change the bindings of used resources within one or more resources. Within each resource specified in entries, the rebindRule is applied. Each rule changes usage of one resource to another as specified by the rule.
How rebinding is done is resource-specific. Typically, the resource’s source text, model, or both are updated to replace the references of oldPath and oldType to newPath and newType.
If a resource in the entries does not currently use a resource identified by oldPath and oldType in the rebindRules, that rule is not applied, but no fault is generated.
Location
/services/webservices/system/admin/resource/operations/
Request Elements
entries: List of source path-type pairs indicating where to apply rebinding:
entry
path: The path to the resource.
type: Resource type: TABLE, PROCEDURE, LINK, DEFINITION_SET, DATA_SOURCE, or TRIGGER.
rebindRules: List of rebindings to be performed on each resource identified in entries.
rebindRule (optional): A single rebinding:
oldPath: The path to the resource that used to be used.
oldType: The type of the resource that used to be used. See above.
newPath: The path to the resource that is now to be used.
newType: The type of the resource that is now to be used. See above.
Response Elements
N/A
Faults
IllegalArgument: If any of the given paths or types are malformed.
NotFound: If any of the resources in entries cannot be found.
Security: If the user does not have READ access on all items in the entry paths other than the last item.
Security: If the user does not have WRITE access to a resource that is to be rebound.