Create

Creates a record of the specified object type.

Parameters 

  • API version (string)
  • Object type (string)
  • (Optional) Map of each field’s name (string) to an object containing its value

iOS 

Swift

1RestClient.shared.requestForCreate(withObjectType:fields:)
Objective-C

1- (SFRestRequest *)requestForCreateWithObjectType:(NSString *)objectType
2                                          fields:(nullable NSDictionary<NSString*, id> *)fields
3                                       apiVersion:(nullable NSString *)apiVersion;

Android 

Kotlin

1fun getRequestForCreate(apiVersion: String?, objectType: String?,
2    fields: Map<String?, Any?>?): RestRequest
Java

1public static RestRequest getRequestForCreate(String apiVersion,
2    String objectType, Map<String, Object> fields)

See Also 

We've Moved

Welcome to the new home of the Mobile SDK Developer Guide! For now, the Japanese guide can be found in PDF form.