{"_id":"564c5f32c241881700d85981","version":{"_id":"55781fe25129590d003ff4f7","project":"54aa7f773b56130b0056c86e","forked_from":"54aa7f773b56130b0056c871","__v":6,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z","categories":["55781fe35129590d003ff4f8","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","55781fe35129590d003ff4fb","55781fe35129590d003ff4fc","55781fe35129590d003ff4fd","55781fe35129590d003ff4fe","564bbc7e8841060d00abb2ee","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","582318b23b961a0f009516a1","594a848c9f4771001a43c959"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Developers","version_clean":"2.0.0","version":"2.0"},"githubsync":"","parentDoc":null,"editedParams2":true,"project":"54aa7f773b56130b0056c86e","user":"54aa7f3f9bb00c0b00cb899b","editedParams":true,"__v":5,"category":{"_id":"564bbc7e8841060d00abb2ee","__v":10,"pages":["564bbf454bf5c80d0020901e","564bc1b08b1c5521002bb914","564c387b9baa330d00faa622","564c3a7b61008d17006ffa3a","564c3e4083b72c2b00b36fb6","564c431b61008d17006ffa46","564c4bc9b9cdb41700a0eae7","564c4e955f9d102b00fc3b4a","564c5f32c241881700d85981","564c68a93eb8f81700838a25"],"project":"54aa7f773b56130b0056c86e","version":"55781fe25129590d003ff4f7","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T23:47:10.058Z","from_sync":false,"order":1,"slug":"pulsate-cms-api","title":"Pulsate CMS API"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-18T11:21:22.432Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X PUT \"https://control.pulsatehq.com/api/v1/apps/$APP_ID/users/$ALIAS\"\n  -H \"Authorization: Token token=$MY_ADMIN_API_TOKEN\"\n  -d '{\n      \"user\": {\n        \"custom_attributes\": [\n          {\n            \"name\": \"gender\",\n            \"value\": \"male\",\n            \"type\": \"String\",\n            \"action\": \"Update\"\n          }\t\n        ]\n      }\n  }'","language":"shell","name":""}]},"method":"put","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"age\": null,\n  \"alias\": \"sample_alias\",\n  \"control_group_campaign_ids\": [],\n  \"dedupe_devices\": [\n    {\n      \"active\": true,\n      \"app_version\": \"2.9.0RC2\",\n      \"bluetooth_state\": \"off\",\n      \"language\": \"en\",\n      \"os_version\": \"6.0.1\",\n      \"sdk_version\": \"2.9.0RichNotification\",\n      \"timezone\": \"GMT+01:00\",\n      \"token\": \"sample_token\",\n      \"type\": \"android\",\n      \"uninstalled\": false\n    }\n  ],\n  \"firstName\": \"sample_nme\",\n  \"gender\": \"male\",\n  \"has_reversed_location\": true,\n  \"lastName\": \"sample_last\",\n  \"uninstalled_at\": null\n}","name":""},{"language":"text","code":""}]},"settings":"564bbbf80cbcc91700b8171c","auth":"required","params":[{"_id":"57ff831b159c7e0e003c4827","ref":"","in":"path","required":true,"desc":"App ID. It can be fetched by using \"Apps: Get All (Index)\" or \"Apps: Get One (Show)\" endpoints.","default":"","type":"string","name":"app_id"},{"_id":"587767d6e3deb13100cbcbd1","ref":"","in":"path","required":true,"desc":"User unique alias within the App","default":"","type":"string","name":"alias"},{"_id":"564bbf454bf5c80d0020901f","ref":"","in":"body","required":true,"desc":"Attribtues to be updated","default":"alias","type":"array_object","name":"user"},{"_id":"587767d6e3deb13100cbcbd0","ref":"","in":"body","required":false,"desc":"User attribute name","default":"","type":"string","name":"user[].name"},{"_id":"587767d6e3deb13100cbcbcf","ref":"","in":"body","required":false,"desc":"User attribute value","default":"","type":"string","name":"user[].value"},{"_id":"587767d6e3deb13100cbcbce","ref":"","in":"body","required":false,"desc":"User attribute type, can be one of: ['Boolean', 'Date', 'Float', 'Integer', 'Numeric', 'String']","default":"","type":"string","name":"user[].type"},{"_id":"587767d6e3deb13100cbcbcd","ref":"","in":"body","required":false,"desc":"Action to be performed, can be one of: ['Decrement', 'Increment', 'Update']","default":"","type":"string","name":"user[].action"}],"url":"/apps/:app_id/users/:alias"},"isReference":true,"order":60,"body":"","excerpt":"","slug":"users-update-one","type":"endpoint","title":"Users: Update One"}

putUsers: Update One


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app_id:
required
string
App ID. It can be fetched by using "Apps: Get All (Index)" or "Apps: Get One (Show)" endpoints.
alias:
required
string
User unique alias within the App

Body Params

user:
required
array of objectsalias
Attribtues to be updated
user[].name:
string
User attribute name
user[].value:
string
User attribute value
user[].type:
string
User attribute type, can be one of: ['Boolean', 'Date', 'Float', 'Integer', 'Numeric', 'String']
user[].action:
string
Action to be performed, can be one of: ['Decrement', 'Increment', 'Update']

Examples


Result Format


User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}