PUT login/user/data

From Social ID Developers
Jump to: navigation, search

Contents

Description

Updates user custom profile information.

Resource URL

  PUT https://api.socialidnow.com/v2/marketing/login/user/data

Parameters

JSON Parameters

object required a hash in the format field:value, with the necessary fields to update the object:
[fields] optional custom fields defined in the schema.

Authentication

This API requires Login User Token authentication. See OAuth.

Response

Response Status

ok (200) The profile was updated successfully.
bad_request (400) Some required parameter was not informed.
unauthorized (401) The authentication is wrong. See OAuth.
forbidden (403) The user data schema is write protected.
not_found (404) The user was not found.
unprocessable_entity (422) Validation error in the field "object".
internal_server_error (500) An unknown error happened.

Examples

Request

Updates the profile of the user.

curl -iX PUT 'https://api.socialidnow.com/v2/marketing/login/user/data' \
-d '{
      "object": {
        "category":"premium"
      }
    }' \
-H "Content-type: application/json" \
-H "Authorization: Bearer 0358172c0cd160dfa731c7a76284fe0c30580f3fc8d827831e9f8b1821d8124c"

Response

Response Headers

HTTP/1.1 200 Ok
Status: 200
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox