This function expires a team user after a specified amount of time.
If the team user already has an expire date set, it's replaced with a new date and reason.
uapi --output=jsonpretty \ --user=username \ Team \ set_expire \ user='teamUser' \ date='120days'
{- "apiversion": 3,
- "func": "set_expire",
- "module": "Team",
- "result": {
- "data": 1674575562,
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}