Sort Member IDs
POST
/teams/{teamId}/members/sortSorts the member IDs provided by their joinDate
(earliest first) and returns it + lastOnline
. Does not provide any user details.
Request
Path Params
teamId
string
required
Body Params application/json
userIds
array[string]
required
The IDs of the users to sort
Example
{
"userIds": [
"string"
]
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
{userId}
object
optional
Where {userId}
is a value provided in userIds
joinDate
string <date-time>
required
When the member joined their team
lastOnline
string <date-time>
required
When the member was last online
Example
{
"{userId}": {
"joinDate": "2019-08-24T14:15:22.123Z",
"lastOnline": "2019-08-24T14:15:22.123Z"
}
}
Last modified: 5 months ago