This API is used to update application profile of a customer.

Request

The update app profile request is specified as follows:

URIhttps://api.imiconnect.io/resources/v2/customerprofiles/


appid : Specifies the application id.
MethodPUT

Request Headers

The following table describes the request headers:

Request HeaderDescription
keyClient profile key
content-typeapplication/json

📘

For data privacy and security reasons, the REST API is served over encrypted HTTPS. The standard HTTP is not supported.

##Request Examples
{
    "Records": [{
        "customerId": "9876",
        "Attributes": {
            "verified": "1",
            "status": "1",
            "createdOn": "2016-07-11 17:02:51",
            "channel": "fb",
            "name": "Joe James1",
            "profile_pic": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xfa1/v/t1.0-1/s200x200/10354686_10150004552801856_220367501106153455_n.jpg?oh=246adb8e3d7dc948f4d8025495fbf8dd&oe=57FD4150&__gda__=1476209436_66628acd9a55e42920bb3f0a823e1eac",
            "psid": "1223275837725015",
            "updatedOn": "2016-07-11 17:17:06"
        }
    }]
}
{
    "Records": [{
        "customerId": "9876",
        "Attributes": {
            "verified": "1",
            "status": "1",
            "channel": "twitter",
            "twitter_handle": "Vamsi_Rayudu",
            "twitter_name": "Vamsi_Rayudu1",
            "geolocation": "",
            "timezone": "",
            "twitterid": "755652926081761280",
            "createdOn": "2016-07-11 17:02:51",
            "updatedOn": "2016-07-11 17:17:06"
        }
    }]
}
{
    "Records": [{
        "customerId": "9876",
        "Attributes": {
            "verified": "1",
            "status": "1",
            "channel": "wechat",
            "nick": "vamsi punnam1",
            "language": "en",
            "wechat_user_id": "o8E7mwaZqY3Q9eaxeftj7TyD5EiE",
            "createdOn": "2016-07-11 17:02:51",
            "updatedOn": "2016-07-11 17:17:06"
        }
    }]
}
{
        "Records": [{
            "customerId": "9876",
            "Attributes": {
                "verified": "0",
                "status": "1",
                "connectStatus": "1",
                "userId": "9876",
                "channel": "rt",
                "deviceId": "355004057394235",
                "rtmId": "9876_355004057394235",
                "make": "Apple",
                "model": "iPad 3(GSM)",
                "os": "ios",
                "osversion": "9.3.1",
                "pushId": "37bc5867465cb95124e5e03aad905100f8154cb4f1f5cb8c4a01eae8ee758316",
                "createdOn": "2016-07-11 17:02:51",
                "last_opened": "2016-07-25T16:39:54+0530",
                "last_upgraded": "2016-07-25T16:39:54+0530"
            }
        }]
    }

Request Body

The following table describes the elements in the request body:

ParameterTypeMandatoryDescription
attributesArray of StringsYesString of key/value pairs to update
##Response Example
{
    "response": {
        "code": "1001",
        "description": "Queued",
        "transid": "5557ee65-53c8-42ac-7a58-ee6e062cae8a"
    }
}

📘

To know the status of the request

Use transid from the response and make a Get Profile status API call to get status of the request.

Response Codes

This API may return the following response codes:

Response CodeMessageDescription
1000QueuedReturned when the request is queued.
7000Invalid JSONReturned when an invalid JSON request is sent.
7001Authentication failedReturned when an invalid service key or profile key is provided in the request.
7002Service Key MissingReturned when the parameter key is missing in the message request.
7003Mandatory parameters missingClick here
7006Internal error occurredReturned when an internal error occurs.
7010Source IP is not whitelistedReturned when a request is sent from an IP that is not whitelisted in IMIconnect.
7011Invalid Attribute ValueReturned when an invalid value is provided for the customer or app profile Attributes object.
7018Invalid app profile or app profile not linked to this client.Returned when an application master profile does not exists.
Language
Credentials
Header
Copyright © 2000 - 2021 IMImobile Limited | All Rights Reserved