-
Notifications
You must be signed in to change notification settings - Fork 9
Data api users get
Takatsugu Shigeta edited this page Oct 29, 2021
·
3 revisions
Retrieve a single user by its ID.
Authorization is required if you want to retrieve private properties.
This method accepts GET only.
GET https://your-host/your-mt-api.cgi/v1/users/{user_id}
Parameter | Type | Description |
---|---|---|
user_id | unsigned integer | The user ID or the word 'me'. |
Parameter | Type | Description |
---|---|---|
fields | string | This is an optional parameter. The field list to retrieve as part of the Users resource. This list should be separated by comma. If this parameter is not specified, All fields will be returned. |
Do not supply a request body.
If successful, this method will return an Users resource as the response body.
Code | Description |
---|---|
200 | no error |
403 | Do not have permission to retrieve the requested user. |
404 | User not found |