Stores an object data in Gigya's Data Store.


Stores an object data in Gigya's Data Store (DS).

Note: If you plan on integrating the DS, we highly recommend reading the Data Store Guide. The DS is part of the Customer Identity premium package that requires separate activation. If the DS is not part of your site package please contact your Gigya or email



dataJSON objectSpecifies the data to store. The data object should be specified as a JSON object complying with the following restrictions:
  • A maximum size of 512K of data.
  • User defined field names must begin with a character and may contain characters, digits and underscores.
  • We highly recommend that you give every field a type specification by appending the type to the field name in the following manner: "_". Valid types are:
    • i - an integer number (may contain 64bit long values as well), allows exact matching or range searches.
    • f - a floating point number, allows exact matching or range searches.
    • s - a string only allows exact matching.
    • t - a full text search field, allows for partial searching based on keywords.
    • b - Boolean.
    • d - a date field, allows exact matching or range searches. The valid date formats are:
      • Standard ISO time format (like "2011-07-14T11:42:32.123+3", may be specified without a time at all or without a time zone)
      • "YYYY-MM-DD HH:MM:SS"
  • When the field type is not specified explicitly we will try to auto detect it. Fields that fail auto detection will be considered strings.
    Note: When defining a 'binary' field type, it is not inferred from the data, and must be set explicitly using the 'setSchema' method.

For example:
   firstName_s : "david",
   birthDate_d : "1978-07-22",
   about_t : "I love tracking,...",
   academicDegree : {
       university_s: "Berkeley",
       degree_s: "MBA",
       department_s: "Business",
       courses : [{...}, {...},...]
   hobbies_s: ["running", "music", "movies"]

typestring A string indicating the type of the object, equivalent to a name classifying objects as being of the same type; used in searches and when applying schemas.
oidstringA unique object identifier. If this parameter is set with the "auto" value, Gigya will generate a unique ID for the object. 
UIDstringA unique ID of a user. Setting this parameter associates the data object with the specified user. The identifier of this object is the compound of oid and UID
updateBehaviorstringThis parameter defines how to handle conflicting updates. The parameter may receive one of the following values:
  • "arrayPush" (default) - will cause arrays data provided with this API call to be appended to existing arrays data in the DB.
  • "arraySet" - will replace the content of existing arrays data in the DB with the values of arrays data provided with this API call.
  • "replace" - will cause the entire object data in the DB to be replaced with the new data provided with this call.


oidstringThe object's unique identifier. The value is either the oid parameter that you specified in the API call or a unique string generated by Gigya (if you have set the parameter to be "auto"). 


  "oid": "8b8972c3b3114db2a0acdfa2617693bf",
  "statusCode": 200,
  "errorCode": 0,
  "statusReason": "OK",
  "callId": "bcb794e7b8ca41b1b3baf99e7bc1c86a",
  "time": "2015-03-22T11:42:25.943Z"