Updates individual objects or batches of objects. In a single API call, you can update multiple data types. In a batch request, the API creates objects in the same order as they appear in the APIObject array.
Parameters
| Name | Data Type | Description |
|---|---|---|
Objects |
Array of APIObject objects | A collection of objects. |
Options |
UpdateOptions | Optionally specifies processing options. |
OverallStatus |
String | Specifies the overall status of the request. |
RequestID |
String | A unique identifier for the request. |
Input
-
UpdateOptions- : An UpdateOptions instance is required for this parameter, but you don’t need to define properties for the instance.
-
APIObjects- : An array of objects to be acted upon. The objects are acted on in the order they have been added - first in, first out. This array can hold different object types. Therefore, complex interactions like updating an email, a list, and an email can be accomplished in one call.
-
RequestKey- : This parameter contains a string value containing an output variable of the key of the request. By default, this value is a GUID.
-
OverallStatus-
: This parameter returns a string value containing the overall status of the request. Valid status values include:
OK- Status code stating that all objects were updated successfully.Has Error- Valid for Update calls with multiple APIObject objects, this status code states that some of the operations failed, while some succeeded.Error- This status code states that all update operations failed during validation or processing.
-
Don’t use the Update method to create objects. If you try to create objects using the Update method, the call fails.
Output
-
UpdateResult- : An array of objects holding a list of return values. The objects are returned in the order acted upon: first in, first out. This array contains one UpdateResult object per input APIObject.