Skip to content

Commit

Permalink
Merge pull request #1149 from MyParcelCOM/revert-1148-revert-1147-fea…
Browse files Browse the repository at this point in the history
…ture/MP-7072-last-login-user-attribute

Reintroduce "MP-7072 Last login user attribute""
  • Loading branch information
yoan-myparcel authored Jan 10, 2025
2 parents aafed05 + 11c84e4 commit 6eb9341
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions specification/paths/Users.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,36 @@
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/query-filter-created_at-date_from"
},
{
"$ref": "#/components/parameters/query-filter-created_at-date_to"
},
{
"name": "filter[last_active_before]",
"in": "query",
"description": "Date string in ISO 8601 format or unix timestamp. Only resources created before this date will be in the response.",
"schema": {
"type": [
"string",
"number"
]
}
},
{
"name": "filter[status]",
"in": "query",
"description": "The status of the user.",
"schema": {
"type": "string",
"enum": [
"active",
"blocked",
"pending"
]
}
}
],
"responses": {
Expand Down
3 changes: 3 additions & 0 deletions specification/schemas/users/User.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
},
"created_at": {
"$ref": "#/components/schemas/Timestamp"
},
"last_active": {
"$ref": "#/components/schemas/Timestamp"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion specification/schemas/users/UserResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"locale",
"status",
"has_mfa_enabled",
"created_at"
"created_at",
"last_active"
]
},
"links": {
Expand Down

0 comments on commit 6eb9341

Please sign in to comment.