LiveConnectClient putWithPath:jsonBody:delegate method
Performs an asynchronous PUT that updates a resource with a given path, JavaScript Object Notation (JSON) message request body, and optionally, a LiveOperationDelegate.
If the resource does not exist, it creates a new one.
Signature
- (LiveOperation *) putWithPath:(NSString *)path
jsonBody:(NSString *)jsonBody
delegate:(id <LiveOperationDelegate>)delegate;
Parameters
Name |
Datatype |
Description |
---|---|---|
path |
NSString |
Required. The path or object ID of the resource to send a PUT request. |
jsonBody |
NSString |
Required. A NSString instance that includes the request body in JSON format. |
delegate |
id <LiveOperationDelegate> |
Optional. An instance of a class that implements the LiveOperationDelegate protocol. |
Returns
Type: LiveOperation
The asynchronous operation that is used to track the asynchronous Representational State Transfer (REST) API request and get response data once the operation completes.
Defined in
LiveConnectClient.h
Remarks
This method uses an HTTP PUT call to the Live SDKREST reference.