{"openapi":"3.1.0","info":{"title":"Bango Auth","description":"User Management API Trough FusionAuth","version":"0.0.1"},"paths":{"/healthz":{"get":{"tags":["K8S"],"summary":"Healthz","description":"Health check endpoint used by K8s.\n\nNB: No synchronous blocking code should be used in this function because it could potentially use all available\nthreads and prevent health checks completing successfully.","operationId":"healthz_healthz_get","parameters":[{"name":"log_with_request","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Log With Request"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users":{"post":{"tags":["Users"],"summary":"Create User View","operationId":"create_user_view_v1_users_post","security":[{"JWTWithPermissions":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Users"],"summary":"Get Users","operationId":"get_users_v1_users_get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"organizationId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizationid"}},{"name":"partnerId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partnerid"}},{"name":"roleName","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rolename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/search":{"post":{"tags":["Users"],"summary":"Search User View","operationId":"search_user_view_v1_users_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWTWithPermissions":[]}]}},"/v1/users/permissions":{"get":{"tags":["Users"],"summary":"Get User Roles","operationId":"get_user_roles_v1_users_permissions_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"loginId","in":"query","required":true,"schema":{"type":"string","title":"Loginid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRolesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/by-email":{"get":{"tags":["Users"],"summary":"Get User By Email View","operationId":"get_user_by_email_view_v1_users_by_email_get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"loginId","in":"query","required":true,"schema":{"type":"string","title":"Loginid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/{user_id}/forgotPassword":{"post":{"tags":["Users"],"summary":"Reset User Password","operationId":"reset_user_password_v1_users__user_id__forgotPassword_post","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/{user_id}":{"get":{"tags":["Users"],"summary":"Get User View","operationId":"get_user_view_v1_users__user_id__get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Users"],"summary":"Patch User View","operationId":"patch_user_view_v1_users__user_id__patch","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Users"],"summary":"Delete User View","operationId":"delete_user_view_v1_users__user_id__delete","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/users/{user_id}/permissions":{"patch":{"tags":["Users"],"summary":"Patch User Permissions View","operationId":"patch_user_permissions_view_v1_users__user_id__permissions_patch","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUserPermissionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations":{"post":{"tags":["Organizations"],"summary":"Create Organization View","operationId":"create_organization_view_v1_organizations_post","security":[{"JWTWithPermissions":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrganizationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Organizations"],"summary":"Get All Organizations View","operationId":"get_all_organizations_view_v1_organizations_get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"includeTest","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Includetest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{organization_id}":{"put":{"tags":["Organizations"],"summary":"Update Organization View","description":"Even though the Method is PUT it acts as an PATCH - it updates only sent fields","operationId":"update_organization_view_v1_organizations__organization_id__put","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Organizations"],"summary":"Get Organization View","operationId":"get_organization_view_v1_organizations__organization_id__get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{organization_id}/connected-organizations":{"get":{"tags":["Organizations"],"summary":"Get Connected Organizations View","operationId":"get_connected_organizations_view_v1_organizations__organization_id__connected_organizations_get","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedOrganizationsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{organization_id}/roles":{"post":{"tags":["Organizations"],"summary":"Update Organization Roles View","operationId":"update_organization_roles_view_v1_organizations__organization_id__roles_post","security":[{"JWTWithPermissions":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRolesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/connected-organizations":{"post":{"tags":["Organizations"],"summary":"Create Connected Organizations View","operationId":"create_connected_organizations_view_v1_organizations_connected_organizations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectedOrganizationsRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWTWithPermissions":[]}]}},"/v1/partners":{"get":{"tags":["Partners"],"summary":"Get All Partners View","operationId":"get_all_partners_view_v1_partners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"JWTWithPermissions":[]}]}},"/v1/applications":{"get":{"tags":["Applications"],"summary":"Get Applications View","operationId":"get_applications_view_v1_applications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"JWTWithPermissions":[]}]}},"/v1/roles":{"get":{"tags":["Roles"],"summary":"Get All Roles View","operationId":"get_all_roles_view_v1_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"JWTWithPermissions":[]}]}},"/oauth2/token":{"post":{"tags":["OAuth2"],"summary":"Oauth2 Create Token","description":"Endpoint used to facilitate the creation of an access token","operationId":"Oauth2_Create_Token_oauth2_token_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"grant_type","in":"query","required":false,"schema":{"anyOf":[{"const":"client_credentials","type":"string"},{"type":"null"}],"title":"Grant Type"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"client_secret","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_Oauth2_Create_Token_oauth2_token_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Oauth2OkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApplicationWithName":{"properties":{"applicationId":{"type":"string","title":"Applicationid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"applicationName":{"type":"string","title":"Applicationname"}},"type":"object","required":["applicationId","roles","applicationName"],"title":"ApplicationWithName"},"ApplicationsResponse":{"properties":{"applications":{"items":{"$ref":"#/components/schemas/ApplicationWithName"},"type":"array","title":"Applications"}},"type":"object","required":["applications"],"title":"ApplicationsResponse"},"AuthorizationErrorResponse":{"properties":{"responseCode":{"type":"string","title":"Responsecode","default":"UNAUTHORIZED"},"responseMessage":{"type":"string","title":"Responsemessage","default":"You have not provided adequate credentials to access this resource."}},"type":"object","title":"AuthorizationErrorResponse","description":"Response model for HTTP status code 401."},"BadRequestResponse":{"properties":{"responseCode":{"type":"string","title":"Responsecode","default":"BAD_REQUEST"},"responseMessage":{"type":"string","title":"Responsemessage","default":"Invalid request."}},"type":"object","title":"BadRequestResponse","description":"Response model for HTTP status code 400."},"Body_Oauth2_Create_Token_oauth2_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","const":"client_credentials"},{"type":"null"}],"title":"Grant Type"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","title":"Body_Oauth2_Create_Token_oauth2_token_post"},"ConnectedOrganization":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"organizationName":{"type":"string","title":"Organizationname"}},"type":"object","required":["organizationId","organizationName"],"title":"ConnectedOrganization"},"ConnectedOrganizationsResponse":{"properties":{"organizations":{"items":{"$ref":"#/components/schemas/ConnectedOrganization"},"type":"array","title":"Organizations"}},"type":"object","required":["organizations"],"title":"ConnectedOrganizationsResponse"},"CreateConnectedOrganizationsRequest":{"properties":{"resellerOrganizationId":{"type":"string","format":"uuid4","title":"Resellerorganizationid"},"contentProviderOrganizationId":{"type":"string","format":"uuid4","title":"Contentproviderorganizationid"}},"type":"object","required":["resellerOrganizationId","contentProviderOrganizationId"],"title":"CreateConnectedOrganizationsRequest"},"CreateOrganizationRequest":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"clientId":{"type":"string","title":"Clientid"},"clientSecret":{"type":"string","title":"Clientsecret"},"region":{"$ref":"#/components/schemas/Region"},"partnerId":{"type":"string","title":"Partnerid"},"partnerName":{"type":"string","title":"Partnername"},"accountKey":{"type":"string","title":"Accountkey"},"env":{"$ref":"#/components/schemas/Environment"},"organizationName":{"type":"string","title":"Organizationname"},"organizationType":{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array","title":"Organizationtype"},"grantEntityPermissions":{"type":"boolean","title":"Grantentitypermissions","default":true},"addonPermissions":{"items":{"type":"string"},"type":"array","title":"Addonpermissions","default":[]},"isTestOrganization":{"type":"boolean","title":"Istestorganization","default":false}},"type":"object","required":["organizationId","clientId","clientSecret","region","partnerId","partnerName","accountKey","env","organizationName","organizationType"],"title":"CreateOrganizationRequest"},"CreateUserRequest":{"properties":{"active":{"type":"boolean","title":"Active","default":true},"email":{"type":"string","format":"email","title":"Email"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"partners":{"items":{"$ref":"#/components/schemas/Partner"},"type":"array","title":"Partners"},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationBase"},"type":"array","title":"Organizations"}},"type":"object","required":["email","partners","organizations"],"title":"CreateUserRequest"},"CreateUserResponse":{"properties":{"userId":{"type":"string","title":"Userid"}},"type":"object","required":["userId"],"title":"CreateUserResponse"},"Environment":{"type":"string","enum":["reg-test","perf-test","sandbox","prod"],"title":"Environment"},"ForbiddenResponse":{"properties":{"responseCode":{"type":"string","title":"Responsecode","default":"FORBIDDEN"},"responseMessage":{"type":"string","title":"Responsemessage","default":"null"}},"type":"object","title":"ForbiddenResponse","description":"Response model for HTTP status code 403."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InternalErrorResponse":{"properties":{"responseCode":{"type":"string","title":"Responsecode","default":"INTERNAL_ERROR"},"responseMessage":{"type":"string","title":"Responsemessage","default":"The server encountered an unexpected condition which prevented it from fulfilling the request."}},"type":"object","title":"InternalErrorResponse","description":"Response model for HTTP status code 500."},"NotFoundResponse":{"properties":{"responseCode":{"type":"string","title":"Responsecode","default":"NOT_FOUND"},"responseMessage":{"type":"string","title":"Responsemessage","default":"Resource not found"}},"type":"object","title":"NotFoundResponse","description":"Response model for HTTP status code 404."},"Oauth2OkResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"Bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","expires_in"],"title":"Oauth2OkResponse"},"Organization":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"organizationName":{"type":"string","title":"Organizationname"},"env":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"accountKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountkey"},"type":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array"},{"type":"null"}],"title":"Type"},"isTestOrganization":{"type":"boolean","title":"Istestorganization","default":false}},"type":"object","required":["organizationId","roles","organizationName"],"title":"Organization"},"OrganizationBase":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["organizationId","roles"],"title":"OrganizationBase"},"OrganizationPermission":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"isAddOn":{"type":"boolean","title":"Isaddon","default":false}},"type":"object","required":["name","enabled"],"title":"OrganizationPermission"},"OrganizationResponse":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"organizationName":{"type":"string","title":"Organizationname"},"accountKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountkey"},"env":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"type":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array"},{"type":"null"}],"title":"Type"},"roles":{"items":{"$ref":"#/components/schemas/OrganizationRoleFullInfo"},"type":"array","title":"Roles"},"addonPermissions":{"items":{"type":"string"},"type":"array","title":"Addonpermissions","default":[]},"isTestOrganization":{"type":"boolean","title":"Istestorganization","default":false}},"type":"object","required":["organizationId","organizationName","roles"],"title":"OrganizationResponse"},"OrganizationRoleFullInfo":{"properties":{"roleId":{"type":"string","title":"Roleid"},"roleName":{"type":"string","title":"Rolename"},"isBangoOnly":{"type":"boolean","title":"Isbangoonly","default":false},"disabled":{"type":"boolean","title":"Disabled","default":false},"roleFriendlyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rolefriendlyname"},"permissions":{"items":{"$ref":"#/components/schemas/OrganizationPermission"},"type":"array","title":"Permissions"}},"type":"object","required":["roleId","roleName","permissions"],"title":"OrganizationRoleFullInfo"},"OrganizationType":{"type":"string","enum":["RESELLER","CONTENT_PROVIDER","PAYMENTS_PAYMENT_PROVIDER","PAYMENTS_MERCHANT","DVM_PAYMENT_FACILITATOR"],"title":"OrganizationType"},"OrganizationUpdate":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"isNew":{"type":"boolean","title":"Isnew"}},"type":"object","required":["organizationId","roles","isNew"],"title":"OrganizationUpdate"},"OrganizationsResponse":{"properties":{"organizations":{"items":{"$ref":"#/components/schemas/Organization"},"type":"array","title":"Organizations"}},"type":"object","required":["organizations"],"title":"OrganizationsResponse"},"Partner":{"properties":{"partnerId":{"type":"string","title":"Partnerid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["partnerId","roles"],"title":"Partner"},"PartnerUpdate":{"properties":{"partnerId":{"type":"string","title":"Partnerid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"isNew":{"type":"boolean","title":"Isnew"}},"type":"object","required":["partnerId","roles","isNew"],"title":"PartnerUpdate"},"PartnerWithName":{"properties":{"partnerId":{"type":"string","title":"Partnerid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"partnerName":{"type":"string","title":"Partnername"}},"type":"object","required":["partnerId","roles","partnerName"],"title":"PartnerWithName"},"PartnersResponse":{"properties":{"partners":{"items":{"$ref":"#/components/schemas/PartnerWithName"},"type":"array","title":"Partners"}},"type":"object","required":["partners"],"title":"PartnersResponse"},"PatchUserPermissionsRequest":{"properties":{"organizations":{"items":{"$ref":"#/components/schemas/OrganizationUpdate"},"type":"array","title":"Organizations"},"partners":{"items":{"$ref":"#/components/schemas/PartnerUpdate"},"type":"array","title":"Partners"}},"type":"object","title":"PatchUserPermissionsRequest"},"PatchUserRequest":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"PatchUserRequest"},"Region":{"type":"string","enum":["eu-01","ap-01","us-01"],"title":"Region"},"Role":{"properties":{"roleId":{"type":"string","title":"Roleid"},"roleName":{"type":"string","title":"Rolename"},"isBangoOnly":{"type":"boolean","title":"Isbangoonly","default":false}},"type":"object","required":["roleId","roleName"],"title":"Role"},"RolePermission":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"isAddOn":{"type":"boolean","title":"Isaddon","default":false},"defaultRoles":{"items":{"type":"string"},"type":"array","title":"Defaultroles"}},"type":"object","required":["name"],"title":"RolePermission"},"RolesResponse":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/Role"},"type":"array","title":"Roles"},"permissions":{"items":{"$ref":"#/components/schemas/RolePermission"},"type":"array","title":"Permissions"}},"type":"object","required":["roles","permissions"],"title":"RolesResponse"},"SearchOrganization":{"properties":{"organizationId":{"type":"string","minLength":1,"title":"Organizationid"}},"type":"object","required":["organizationId"],"title":"SearchOrganization"},"SearchUserRequest":{"properties":{"userId":{"type":"string","minLength":1,"title":"Userid"},"organizations":{"items":{"$ref":"#/components/schemas/SearchOrganization"},"type":"array","minItems":1,"title":"Organizations"}},"type":"object","required":["userId","organizations"],"title":"SearchUserRequest"},"UpdateOrganizationRequest":{"properties":{"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientid"},"clientSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientsecret"},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"env":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}]},"partnerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partnerid"},"partnerName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partnername"},"accountKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountkey"},"organizationName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizationname"},"organizationType":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array"},{"type":"null"}],"title":"Organizationtype"},"grantEntityPermissions":{"type":"boolean","title":"Grantentitypermissions","default":false},"addonPermissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Addonpermissions"},"rolloverTimeframe":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":0.0},{"type":"null"}],"title":"Rollovertimeframe","description":"Rollover timeframe in days"},"isTestOrganization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Istestorganization"}},"type":"object","title":"UpdateOrganizationRequest"},"UpdateOrganizationRole":{"properties":{"roleId":{"type":"string","title":"Roleid"},"roleName":{"type":"string","title":"Rolename"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"disabled":{"type":"boolean","title":"Disabled","default":false},"roleFriendlyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rolefriendlyname"},"isNew":{"type":"boolean","title":"Isnew"}},"type":"object","required":["roleId","roleName","permissions","isNew"],"title":"UpdateOrganizationRole"},"UpdateOrganizationRolesRequest":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UpdateOrganizationRole"},"type":"array","title":"Roles"}},"type":"object","required":["roles"],"title":"UpdateOrganizationRolesRequest"},"UserMainResponse":{"properties":{"active":{"type":"boolean","title":"Active","default":true},"email":{"type":"string","format":"email","title":"Email"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastLoginAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastloginat"}},"type":"object","required":["email","createdAt"],"title":"UserMainResponse"},"UserOrganization":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"organizationName":{"type":"string","title":"Organizationname"},"env":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"accountKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountkey"},"type":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array"},{"type":"null"}],"title":"Type"},"isTestOrganization":{"type":"boolean","title":"Istestorganization","default":false},"disabled":{"type":"boolean","title":"Disabled","default":false},"roleFriendlyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rolefriendlyname"},"isBangoOnly":{"type":"boolean","title":"Isbangoonly","default":false}},"type":"object","required":["organizationId","roles","organizationName"],"title":"UserOrganization"},"UserResponse":{"properties":{"active":{"type":"boolean","title":"Active","default":true},"email":{"type":"string","format":"email","title":"Email"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"partners":{"items":{"$ref":"#/components/schemas/PartnerWithName"},"type":"array","title":"Partners"},"organizations":{"items":{"$ref":"#/components/schemas/UserOrganization"},"type":"array","title":"Organizations"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastLoginAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastloginat"}},"type":"object","required":["email","partners","organizations","createdAt"],"title":"UserResponse"},"UserRoleOrganization":{"properties":{"organizationId":{"type":"string","title":"Organizationid"},"organizationName":{"type":"string","title":"Organizationname"},"accountKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountkey"},"env":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"type":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationType"},"type":"array"},{"type":"null"}],"title":"Type"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["organizationId","organizationName","roles","permissions"],"title":"UserRoleOrganization"},"UserRolePartner":{"properties":{"partnerId":{"type":"string","title":"Partnerid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["partnerId","roles"],"title":"UserRolePartner"},"UserRolesResponse":{"properties":{"id":{"type":"string","title":"Id"},"partners":{"items":{"$ref":"#/components/schemas/UserRolePartner"},"type":"array","title":"Partners"},"organizations":{"items":{"$ref":"#/components/schemas/UserRoleOrganization"},"type":"array","title":"Organizations"}},"type":"object","required":["id","partners","organizations"],"title":"UserRolesResponse"},"UsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/UserMainResponse"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"UsersResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"JWTWithPermissions":{"type":"http","scheme":"bearer"},"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"},"HTTPBasic":{"type":"http","scheme":"basic"}}}}