Skip to content

Update filter

PUT
/api/filters/{id}

Update a filter by id. Admin role is required.

Authorizations

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Parameters

Path Parameters

id*

Id of the filter to update.

Type
integer
Required
Example1

Request Body

application/json
JSON
{
  
"negate": false,
  
"tags": [
  
],
  
"places": [
  
  
{
  
  
  
"id": 23,
  
  
  
"name": "Place name"
  
  
}
  
],
  
"actors": [
  
  
{
  
  
  
"ap_id": "AP_ID"
  
  
}
  
],
  
"collectionId": 3
}

Responses

The updated filter.

application/json
JSON
{
  
"id": 12,
  
"negate": false,
  
"tags": [
  
],
  
"places": [
  
  
{
  
  
  
"id": 23,
  
  
  
"name": "Place name"
  
  
}
  
],
  
"actors": [
  
  
{
  
  
  
"ap_id": "AP_ID"
  
  
}
  
],
  
"collectionId": 3
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI