Examples

POST /api/filters
{
  "filter": {
    "role_id": 28,
    "permission_ids": [
      350275019
    ]
  },
  "organization_id": 447626438
}
201
{
  "search": null,
  "resource_type_label": "Architecture",
  "unlimited?": true,
  "created_at": "2022-09-06 14:36:39 UTC",
  "updated_at": "2022-09-06 14:36:39 UTC",
  "override?": false,
  "id": 1062414196,
  "resource_type": "Architecture",
  "role": {
    "name": "role_test",
    "id": 28,
    "description": null,
    "origin": null
  },
  "permissions": [
    {
      "name": "view_architectures",
      "id": 350275019,
      "resource_type": "Architecture"
    }
  ],
  "locations": [],
  "organizations": []
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

filter
required

Validations:

  • Must be a Hash

filter[role_id]
required

Validations:

  • Must be a String

filter[search]
optional , nil allowed

Validations:

  • Must be a String

filter[override]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

filter[permission_ids]
optional , nil allowed

Validations:

  • Must be an array of any type

filter[organization_ids]
optional , nil allowed

Validations:

  • Must be an array of any type

filter[location_ids]
optional , nil allowed

Validations:

  • Must be an array of any type