HOW TO UPDATE A MARKER DATABASE

You can update a marker database using the Cloud API, by making an HTTPS PUT request to https://ws.crs.pikkart.com/ar/reco/db/{databaseId}. The request header should include the authorization fields. The body of the request must be a JSON object that defines the properties of the targets as specified here.

JSON body elements

The JSON body elements are listed in the following table.

field name type mandatory description
name string [1 - 50] yes the database display name
updateUser string [1 - 50] no the user that is creating the marker
deviceId string [1 - 50] no the device id or website url that call the ws api
operationContextTypeCode integer yes UnKnown = 1,
WebApplication = 2,
AndroidApp = 3,
iOSApp = 4,
WindowsPhoneApp = 5

JSON body elements

        
            {
                "name":"Repository test",
                "updateUser":"john.doe",
                "deviceId":"www.website.com webclient",
                "operationContextTypeCode":2
            }
        
    

Returned data

The returned operation data message contains the following information.

field name type mandatory description
id integer yes the cloud identifier
name string [1 - 50] yes the database display name
code string [1 - 20] yes the code of the database, that you use when you manage your markers
updateDate date yes last marker update date
updateUser string [1 - 50] yes last marker update user
deviceId string [1 - 50] no the device id or website url that call the ws api
operationContextTypeCode integer yes UnKnown = 1,
WebApplication = 2,
AndroidApp = 3,
iOSApp = 4,
WindowsPhoneApp = 5

JSON Returned data example

        
        {
            "id":"129_286",
            "name":"Repository test",
            "code":"test",
            "updateUser":"john.doe",
            "updateDate":"2015-07-14T17:11:45",
            "deviceId":"www.website.com webclient",
            "operationContextTypeCode":2
        }