Skip to content

Create filter

POST
/api/filters

Create a filter. Admin role is required.

Authorizations

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Request Body

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

Responses

The new filter.

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

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI