Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleResponse Code


HTTP Status code:Description/Response Body:
200 OKTransaction OK.
401 UnauthorizedAPITOKEN is invalid or null
{"error" : "APITOKEN is invalid or nullAUTH_REQUIRED"}



Code Block
titlecurl example
 curl -X GET -H "X-APITOKEN: API_TOKEN_HERE" -k https://m.thingscale.io/v2/user

...

Expand
titleRequest parameters


Request ParameterDescription:
URI:https://m.thingscale.io/v2/user/
Header:X-APITOKEN:API_TOKEN_HERE
Body:

Request body is JSON payload as follows:
(NOTE)At least one field required.

Code Block
titlesample payload
{
        "email1": "YOUR_EMAIL_ADDRESS1",
        "email2": "YOUR_EMAIL_ADDRESS2",
        "organization": "YOUR_ORGANIZATION",
        "locale": "YOUR_LOCALE(TIMEZONE)", // e.g. Asia/Tokyo (set from Management Console recommended.)
        "user_alias": "YOUR_NAME"
}



Info
titleUpdating API_TOKEN and DEVICE_TOKEN

You will not be able to update API token and Device token reasons API via in on security.
Please perform the re-generation of each token from the management console.



Expand
titleResponse Code


TTP HTTP Status code:Description/Response Body:
200 OKTransaction OK.
401 UnauthorizedAPITOKEN is invalid or null
{"error" : "AUTH_REQUIRED"}


...