InsionInsion
PHP

Create an appeal

Submit an appeal for a suspended user

$appeal = $client->createAnAppeal('usr_123', new PostApiV1UsersUserIdCreateAppealRequest([
  'text' => 'Please review this decision.',
]));

createAnAppeal(string $userId, PostApiV1UsersUserIdCreateAppealRequest $request, ?array $options = null): ?CreateAppealResponse requires the Insion user ID and a request containing text. Appeals must be enabled for the organization.

The first argument is a path parameter and the request object contains only the appeal text. Obtain userId from user ingestion, listing, or retrieval. Save the returned appeal data if you need to attach it to a customer-support workflow; API errors are reported as InsionApiException.