Skip to main content
PATCH
Queue a bulk file permission update

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
permissions
enum<string>
required

Required permission target. public exposes files broadly, donor limits them to related donors and admins, and admin hides them from donors.

Available options:
public,
donor,
admin
Example:

"donor"

program_id
integer | null

Nullable integer. Required when selection_mode is program, search, or advanced_filter so the job can scope files to one program.

Example:

42

upload_ids
integer[] | null

Nullable array of explicit upload IDs to update.

entity_ids
integer[] | null

Nullable array of recipient IDs whose files should be updated.

selection_mode
enum<string> | null

Nullable string. Selects files by program, search query, or advanced filter instead of explicit upload IDs.

Available options:
program,
search,
advanced_filter
Example:

"search"

search_query
string | null

Nullable string. Required when selection_mode is search; passed to the background selector.

Example:

"school report"

filter_groups
object[] | null

Nullable array. Required when selection_mode is advanced_filter; contains the same filter group payload used by the file filter UI.

scheduled_date
string<date> | null

Nullable date. When present, the job schedules the permission change instead of applying it immediately.

Example:

"2026-06-01"

notify_donor
boolean | null

Nullable boolean. When true and permissions become public, donor notification jobs may be dispatched.

Example:

true

include_profile_files
boolean | null

Nullable boolean. When true, profile files can be included in the selected file set.

Example:

false

Response

Bulk permission job queued.

message
string
Example:

"Your file permission update is being processed in the background."