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

Replace a replacement JSON Object

Replace a replacement JSON Object

Replace JSON Object

Request format

Method uses PUT.

URI

/v1/dat/{datastore ID}/{app ID}/{collection ID}/{object 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 put Optional.When the HTTP method is PUT
get true
false
Optional. The default value is false

Response format

Response header

Content-Type application/json
Location Optional. The default value is true

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 access the app. 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 in JSON format as shown below:

List of Error Code

Error Code value Classification Details
0060002 content body content name 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