You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data payload of a curl request to /api/v3/user/allocate appears not to be parsed correctly, leading to the default STR attribute being incremented regardless of the request. For instance, the following returns success but bumps STR instead of the desired INT:
Alys
changed the title
API requests to /user/allocate always up Strength
apidocs misleading - causes API requests to /user/allocate always up Strength
Aug 11, 2018
The apidocs for that route have it listed under the heading "Body Parameters", which is probably how the confusion arises (even though it's "query parameters" in the text).
I'm reopening this for the docs to be clarified but I"m assigning it to myself to fix because I want to make a couple of other wording changes too (e.g., "Stat Points")
…ixes#10557 (#10592)
* correct curl parameter (-X for request method; -x for proxy information)
* fix typo in error message
* fix mistakes in apidocs for allocating Stat Points
Description
The data payload of a
curl
request to/api/v3/user/allocate
appears not to be parsed correctly, leading to the default STR attribute being incremented regardless of the request. For instance, the following returns success but bumps STR instead of the desired INT:curl -s -X POST --compressed -H "Content-Type:application/json" -H "x-api-user:USERID" -H "x-api-key:API_TOKEN" https://habitica.com/api/v3/user/allocate -d '{"stat": "int"}'
The text was updated successfully, but these errors were encountered: