Managers
List Single Manager
GET
/v1/data/managers_flat_data_search/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"result": {
"managerId": "dfa1d882-c748-43fc-8402-1426dcd5dc92",
"moduleFor": "test",
"moduleId": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"userId": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"titleHeld": "test",
"isPrimary": false,
"canAddTourneys": true,
"canAddLeagues": false,
"canAddClinics": false,
"canManageEvent": false,
"canManageActivities": false,
"canManageScores": false,
"canManageAttendees": false,
"canManageCheckin": false,
"canManagePayments": false,
"canManageReferees": false,
"canManageVolunteers": false,
"dateCreated": "2022-12-27T09:26:38.148966963Z",
"createdByFullName": "Mahir Bajramovic",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"updatedByFullName": "",
"dateDisabled": "2023-09-11T19:28:58.244013984Z",
"disabledByFullName": "",
"canManageLeague": false,
"canManageLeagueSession": false,
"canAddLeagueSession": false,
"canManageLeagueClubSettings": false,
"canUploadRatings": false,
"canManuallyEnterRatings": false,
"canManagerUDF": false,
"canManageSanctionRequests": false,
"can_view_only": false
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
Delete Manager
DELETE
/v1/managers_flat_data_search/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Response
Empty
Upsert Manager
POST
/v1/managers_flat_data_search/upsert
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{"payload":{
"manager_id": "dfa1d882-c748-43fc-8402-1426dcd5dc92",
"module_for": "test",
"module_id": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"user_id": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"title_held": "test",
"is_primary": false,
"can_add_tourneys": true,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2023-09-11T19:28:58.244013984Z",
"created_by_full_name": "Mahir Bajramovic",
"date_updated": "2023-09-11T19:28:58.244013984Z",
"updated_by_full_name": "",
"date_disabled": "2023-09-11T19:28:58.244013984Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
},
"fieldsToOmit":["dateCreated"]
}
Response
{
"result": {
"managerId": "dfa1d882-c748-43fc-8402-1426dcd5dc92",
"moduleFor": "test",
"moduleId": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"userId": "dfa1d882-c748-43fc-8402-1426dcd5dc07",
"titleHeld": "test",
"isPrimary": false,
"canAddTourneys": true,
"canAddLeagues": false,
"canAddClinics": false,
"canManageEvent": false,
"canManageActivities": false,
"canManageScores": false,
"canManageAttendees": false,
"canManageCheckin": false,
"canManagePayments": false,
"canManageReferees": false,
"canManageVolunteers": false,
"dateCreated": "2022-12-27T09:26:38.148966963Z",
"createdByFullName": "Mahir Bajramovic",
"dateUpdated": "2023-09-11T19:28:58.244013984Z",
"updatedByFullName": "",
"dateDisabled": "2023-09-11T19:28:58.244013984Z",
"disabledByFullName": "",
"canManageLeague": false,
"canManageLeagueSession": false,
"canAddLeagueSession": false,
"canManageLeagueClubSettings": false,
"canUploadRatings": false,
"canManuallyEnterRatings": false,
"canManagerUDF": false,
"canManageSanctionRequests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
Create Manager
POST
POST /v1/managers_flat_data_search
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
Response
{
"result": {
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
Update Manager
PUT
PUT /v1/managers_flat_data_search/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload": {
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
Response
{
"result": {
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
}
List All Managers
GET
GET /v1/data/managers_flat_data_search
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Query parameters
Name | Description |
---|---|
page_size | Number value that represents number of returned results |
current_page | Number value that represents offset of returned results |
Request
Empty
Response
{
"total_records": "2",
"result": [
{
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
},
{
"manager_id": "5cc3f7fc-52aa-4c1d-9ee1-c79299eb4e1e",
"module_for": "test",
"module_id": "",
"user_id": "",
"title_held": "",
"is_primary": false,
"can_add_tourneys": false,
"can_add_leagues": false,
"can_add_clinics": false,
"can_manage_event": false,
"can_manage_activities": false,
"can_manage_scores": false,
"can_manage_attendees": false,
"can_manage_checkin": false,
"can_manage_payments": false,
"can_manage_referees": false,
"can_manage_volunteers": false,
"date_created": "2022-12-16T19:43:11Z",
"created_by_full_name": "",
"date_updated": "2023-05-03T11:16:15.544920724Z",
"updated_by_full_name": "",
"date_disabled": "2022-12-16T19:43:11Z",
"disabled_by_full_name": "",
"can_manage_league": false,
"can_manage_league_session": false,
"can_add_league_session": false,
"can_manage_league_club_settings": false,
"can_upload_ratings": false,
"can_manually_enter_ratings": false,
"can_manager_UDF": false,
"can_manage_sanction_requests": false,
"can_view_only": false,
"can_edit_club": false,
"can_manage_members": false,
"can_manage_rated_games": false,
"can_manage_user_defined": false,
"can_view_reports": true
}
]
}
Enable and Disable Manager
PUT
PUT /v1/managers_flat_data_search/{uuid}/{action}
💡
This request requires “PB-API-TOKEN” from the platforms.
Action should be set to "enable" or "disable" manager.
Request
Empty
Response
200 OK If the manager was successfully enabled or disabled.