{"_id":"583e47803a4a941900c54556","__v":1,"project":"568bdc1483d2061900d86cdc","category":{"_id":"583df597887db62f00644283","version":"582789aabe5c080f00a5a7fe","project":"568bdc1483d2061900d86cdc","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-11-29T21:39:35.578Z","from_sync":false,"order":7,"slug":"accounts","title":"Account"},"version":{"_id":"582789aabe5c080f00a5a7fe","__v":10,"project":"568bdc1483d2061900d86cdc","createdAt":"2016-11-12T21:29:14.915Z","releaseDate":"2016-11-12T21:29:14.915Z","categories":["582789abbe5c080f00a5a7ff","582789abbe5c080f00a5a800","582789abbe5c080f00a5a801","582789abbe5c080f00a5a802","582789abbe5c080f00a5a803","582789abbe5c080f00a5a804","582789abbe5c080f00a5a805","582789abbe5c080f00a5a806","582789abbe5c080f00a5a807","582789abbe5c080f00a5a808","5827ea984ca29e0f00137a9e","583df597887db62f00644283","583df5d9c622791900e78da5","5845cd8763c11b250037967d","5845d13063c11b2500379681","5859e859e3306d1900126725","587aeb9a01cf3a0f008359eb","587c422af45e2d0f005e200d","587d84dc82f6f30f004ceee5"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"beta2","version_clean":"0.0.0","version":"0"},"parentDoc":null,"user":"573b7f42fdc9d320001b777d","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-11-30T03:29:04.725Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"PUT https://ioe.droplit.io/api/account HTTP/1.1\nauthorization: AUTH_TOKEN\ncontent-type: application/json\n\n{\n\t\"email\": \"test:::at:::test.com\",\n  \"meta\": {\n  \t\"$label\": \"Test\"\n  }\n}","language":"http"}]},"method":"put","results":{"codes":[{"name":"","status":200,"language":"json","code":" "},{"status":400,"language":"json","code":"{\n  \"errorType\": \"InvalidParams\",\n  \"errors\": [\n    {\n      \"in\": \"body\",\n      \"message\": \"contains fields that are not allowed: [ foo ]\",\n      \"path\": \"additional parameters\"\n    }\n  ]\n}","name":""},{"code":"","language":"text","status":401}]},"settings":"572c39957c8eff0e00aaa18b","auth":"required","params":[{"_id":"583e47803a4a941900c54558","ref":"","in":"body","required":false,"desc":"email for the account","default":"","type":"string","name":"email"},{"_id":"583e47803a4a941900c54557","ref":"","in":"body","required":false,"desc":"account [meta data](doc:metadata)","default":"","type":"object","name":"meta"},{"_id":"5846306185b4a60f008e980d","ref":"","in":"header","required":false,"desc":"[metadata](doc:metadata) prefix","default":"$","type":"string","name":"x-system-meta-prefix"}],"url":"/account"},"isReference":true,"order":1,"body":"This endpoint is used by your client application to update an end-user’s email or any metadata. The desired user account to be updated is inferred from the `AUTH_TOKEN` provided.","excerpt":"","slug":"update-accounts","type":"endpoint","title":"Update"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

email:
string
email for the account
meta:
object
account [meta data](doc:metadata)

Headers

x-system-meta-prefix:
string$
[metadata](doc:metadata) prefix

Examples


Result Format


Documentation

This endpoint is used by your client application to update an end-user’s email or any metadata. The desired user account to be updated is inferred from the `AUTH_TOKEN` provided.

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 }}