REST API JSON Data API
last update 2015-3-26

Register a JSON Object

Register a JSON Object

Register a JSON Object

Request format

Method uses PUT or POST

URI

/v1/dat/{datastore ID}/{app ID}/{collection ID}

Request header

Content-Type application/json
X-APPIARIES-TOKEN Specify access token(*1)

Query

Query name Value Notes
access_token access token(*1)
proc create Optional
get true
false
Optional. The default value is false

Request content body

Parameter name Value Notes
Optional user properties Option value Option. Properties that can be freely set by the customer

Response format

Response header

Content-Type application/json
Location URL for retrieving the registered object

HTTP response code

HTTP response code Details
201 success
400 content(body part) Invalid format
401 token unspecified, Authentication failure
403 no permission to access the app. No permission to create in the collection. The object that can be stored in the collection is not “JSON data”.
404 collection not created
409 object already registered
413 object size exceeds limit
422 content invalid
500 unexpected error
507 available storage capacity exceeded

Content body

When HTTP response code is 409,422, content body is returned as shown below:

List of Error Code

Error Code Value Classification Details
0060002 content body Contentname invalid
0060011 content body Control characters except LF, CR and TAB are included
0060101 object ID null, null character
0060102 object ID not a character string
0060104 object ID Incorrect URI format
0060109 object ID objectID already in use

例)curl command