POST /api/filters { "filter": { "role_id": 18, "permission_ids": [ 623290985 ] } } 201 { "search": null, "resource_type": "Domain", "resource_type_label": "Domain", "unlimited?": false, "created_at": "2020-05-20 13:34:33 UTC", "updated_at": "2020-05-20 13:34:33 UTC", "override?": false, "id": 1062414192, "role": { "name": "New Role", "id": 18, "description": null, "origin": null }, "permissions": [ { "name": "view_domains", "id": 623290985, "resource_type": "Domain" } ], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
filter required |
Validations:
|
filter[role_id] required |
Validations:
|
filter[search] optional , nil allowed |
Validations:
|
filter[override] optional , nil allowed |
Validations:
|
filter[permission_ids] optional , nil allowed |
Validations:
|
filter[organization_ids] optional , nil allowed |
Validations:
|
filter[location_ids] optional , nil allowed |
Validations:
|