You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query string that will specify what records will be responded. If nothing is specified, fields will be returned from all accessible records. The query detail
param.fields
Array
Optional
The field codes that you want in the response. If nothing is specified, all accessible fields in the app will be returned.
param.totalCount
Boolean
Optional
If set to "true", the request will retrieve the total count of records that were retrieved that match the query conditions. If ignored, null is returned for the totalCount value.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
The query string that will specify what records will be responded. If nothing is specified, fields will be returned from all accessible records. The query detail Can't indicate limit and offset.
param.fields
Array
Optional
The field codes that you want in the response. If nothing is specified, all accessible fields in the app will be returned.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
Field codes and values are specified in this object. If ignored, the record will be added with default field values. If field codes that don't exist are specified, these will be ignored.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
To specify this field, the field must have the "Prohibit duplicate values" option turned on.
param.updateKey.field
String
No (Required, if updateKey will be specified)
The field code of unique key.
param.updateKey.value
String
No (Required, if updateKey will be specified)
The value of unique key.
param.revision
Number
Optional
The expected revision number. If the value does not match, an error will occur and the record will not be updated. If the value is not specified or is -1, the revision number will not be checked.
param.record
Object
Optional
Field codes and values are specified in this object. If ignored, the record will not be updated.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
Response
Promise Object
Sample
varrecord={Number: {value: 1234},String: {value: 'string'},};//update by idkintoneUtility.rest.putRecord({app: 542,id: 18616,record: record,isGuest: false}).then(function(response){console.log(response);}).catch(function(error){console.log(error);});//update by unique keykintoneUtility.rest.putRecord({app: 542,updateKey: {field: 'unique_field_code',value: 'unique_field_value'},record: record,isGuest: false}).then(function(response){console.log(response);}).catch(function(error){console.log(error);});
The expected revision number. The first id number will correspond to the first revision number in the array, the second id to the second revision number, and so on. If the revision number does not match, an error will occur and no records will be deleted. If the revision number is left blank or is -1, the revision number will not be checked for the corresponding record ID.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
Can delete over 2000 records, but can't do rollback.
Parameter
Name
Data type
Required
Description
param
Object
Yes
param.app
Number
Yes
The App ID.
param.query
String
Optional
The query string that will specify what records will be responded. If nothing is specified, fields will be returned from all accessible records. The query detail Can't indicate limit and offset.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
Insert the record if the updateKey doesn't exists.
Update the record if the updateKey exists.
Parameter
Name
Data type
Required
Description
param
Object
Yes
param.app
Number
Yes
The app ID.
param.updateKey
Object
Yes
To specify this field, the field must have the "Prohibit duplicate values" option turned on.
param.updateKey.field
String
Yes
The field code of unique key.
param.updateKey.value
String
Yes
The value of unique key.
param.revision
Number
Optional
The expected revision number. If the value does not match, an error will occur and the record will not be updated. If the value is not specified or is -1, the revision number will not be checked.
param.record
Object
Optional
Field codes and values are specified in this object. If ignored, the record will not be updated.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.
Get the list of fields and field settings of an App.
Parameter
Name
Data type
Required
Description
param
Object
Yes
param.app
Number
Yes
The app ID.
param.lang
String
Optional
The localized language to retrieve the data in:
default: retrieves the default names en: retrieves the localized English names zh: retrieves the localized Chinese names ja: retrieves the localized Japanese names user: retrieves the localized names, in the same language as the language setting* set on the user used for the authentication.
If ignored, the default names will be retrieved.
*If the user language setting is set to "Use Web browser settings", the settings set in the Accept-Language header will be used. If there is no Accept-Language header, the language set in the "Localization" settings in the System Administrator's menu will be used.
param.isPreview
Boolean
Optional
The default is false, to be true if you want to get pre-live setting.
param.isGuest
Boolean
Optional
The default is false, to be true if the app is belonged to a guest space.