Get represented athletes, sending the filters in a body
The same roster as GET /agent/athletes, served by the same handler. It exists only so a client can send the column filters in a JSON body instead of spelling them out in a query string, which gets long once several columns are filtered at once. *
- Nothing behaves differently: the parameter names, the filter shapes, the pagination and the response are identical, and a parameter may be sent in the body or the query string. Read the GET for what each one means.
- Sending
view: removalswitches it to the Confirm Client Removal list instead (ENG-1465). That exists because Select All cannot be listed from what the grid loaded: the agent may have selected rows across pages they never opened. It resolves the selection exactly the way DELETE /agent/athletes will, taking the samefilterandexcluded_athlete_id, so the modal can only ever name the athletes the removal would actually take off the roster. - Rows ticked by hand do not need it. The client already has those rows and can send their ids straight to the delete.
Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Body
1
10
Y, N "Y"
Y, N "Y"
2740
Same as the GET. Ignored under view: removal.
client, profile, tax_documents, in_progress_deals, earnings, instagram, tiktok, twitter "earnings"
asc, desc "desc"
Keyed by column, same shapes the GET documents. Under view: removal this is what Select All means, so send the filter the grid is showing. Omitting it while a column is filtered widens the selection to the entire roster and the modal will name athletes the agent never saw.
Omit for the roster. removal returns only athlete_id, profile_photo, name and university, with no audience, social or activity data, which is what makes paging the whole selection cheap.
removal "removal"
Whether Select All was used. The boolean, the strings true and 1, and the number 1 are all accepted, matching DELETE /agent/athletes.
true
Athletes the agent unticked after Select All. Read only when is_all_selected is set, and taken out of meta.total as well as data, so the page count shrinks as the agent unticks.