Same with the following request:
var_dump(
\IPS\Http\Url::external( $url.'api/index.php?core/members/1/warnings' )->request()->login( $key, '' )->post(
[
'reason' => 1,
'moderator' => 1,
'acknowledged' => TRUE,
'memberNote' => true,
'suspend' => "2024-01-25 09:03:14 +0000",
'restrictPosts' => "2024-01-25 09:03:14 +0000",
]
)->decodeJson()
);
but I think I've just located an issue if warning actions are present!
Let me investigate this further.