put https://api.imiconnect.io/resources/v2/customerprofiles/<appid>
This API is used to update application profile of a customer.
Request
The update app profile request is specified as follows:
| URI | https://api.imiconnect.io/resources/v2/customerprofiles/ appid : Specifies the application id. | 
| Method | PUT | 
Request Headers
The following table describes the request headers:
| Request Header | Description | 
|---|---|
| key | Client profile key | 
| content-type | application/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:
| Parameter | Type | Mandatory | Description | 
|---|---|---|---|
| attributes | Array of Strings | Yes | String 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 Code | Message | Description | 
|---|---|---|
| 1000 | Queued | Returned when the request is queued. | 
| 7000 | Invalid JSON | Returned when an invalid JSON request is sent. | 
| 7001 | Authentication failed | Returned when an invalid service key or profile key is provided in the request. | 
| 7002 | Service Key Missing | Returned when the parameter key is missing in the message request. | 
| 7003 | Mandatory parameters missing | Click here | 
| 7006 | Internal error occurred | Returned when an internal error occurs. | 
| 7010 | Source IP is not whitelisted | Returned when a request is sent from an IP that is not whitelisted in IMIconnect. | 
| 7011 | Invalid Attribute Value | Returned when an invalid value is provided for the customer or app profile Attributes object. | 
| 7018 | Invalid app profile or app profile not linked to this client. | Returned when an application master profile does not exists. | 
