PUT

/api/v1/filters/:id

Request Code

Last Update : 2019.07.10
// set request
$request = new \MastodonApi\Filters\PostRequest();
$request->phrase = '{phrase}';
$request->context = ['{context}'];
$request->irreversible = '{irreversible}';
$request->whole_word = '{whole_word}';
$request->expires_in = {expires_in};

$mastodonApi->filters->post('{id}', $request);

Response Data

Last Update : 2019.07.10
MastodonApi\Entities\Filter Object
(
	[id] => {id}
	[phrase] => {phrase}
	[context] => Array
	(
		[0] => {context_value}
	)
	[expires_at] => {expires_at}
	[irreversible] => {irreversible}
	[whole_word] => {whole_word}
)

AdSense