Action
|
Method
|
Input
|
Output
|
Parameters
|
---|---|---|---|---|
Read logged-in user record
|
GET
|
/v2/user
|
JSON representation of the record.
|
fields
|
Method
|
GET
|
URL
|
/v2/user
|
Parameters
|
fields
|
Response Content Type
|
application/json
|
Parameter
|
Description
|
Data Type
|
Example
|
---|---|---|---|
fields
|
The fields of the object to retrieve. Eager loading is supported in depth, and fields in related records can be eager-loaded if there is a relationship between records.
If not specified, all fields are retrieved. This has the same effect as specifying a wildcard (*) character.
|
String
|
Retrieve only the Username and Email field values from a User record:
/v2/user?fields=io_username,io_email
|
|
Each returned record includes the __object_identifier pseudo-field, which contains the full identifier for the object to which the record belongs.
|
HTTP Status Code
|
Error Message
|
---|---|
400
|
SMQL query error
|
400
|
Serialization error
|
404
|
Entity not found
|
500
|
Internal Server error
|