All URIs are relative to https://base.manager.iblai.app
Method | HTTP request | Description |
---|---|---|
notification_v1_orgs_notifications_bulk_update_partial_update | PATCH /api/notification/v1/orgs/{org}/notifications/bulk-update/ | |
notification_v1_orgs_notifications_retrieve | GET /api/notification/v1/orgs/{org}/notifications/ | |
notification_v1_orgs_notifications_update | PUT /api/notification/v1/orgs/{org}/notifications/ | |
notification_v1_orgs_users_notifications_bulk_update_partial_update | PATCH /api/notification/v1/orgs/{org}/users/{user_id}/notifications/bulk-update/ | |
notification_v1_orgs_users_notifications_count_retrieve | GET /api/notification/v1/orgs/{org}/users/{user_id}/notifications-count/ | |
notification_v1_orgs_users_notifications_destroy | DELETE /api/notification/v1/orgs/{org}/users/{user_id}/notifications/{notification_id}/ | |
notification_v1_orgs_users_notifications_retrieve | GET /api/notification/v1/orgs/{org}/users/{user_id}/notifications/ | |
notification_v1_orgs_users_notifications_update | PUT /api/notification/v1/orgs/{org}/users/{user_id}/notifications/ |
Notification notification_v1_orgs_notifications_bulk_update_partial_update(org, patched_notification=patched_notification)
Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.models.patched_notification import PatchedNotification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
patched_notification = iblai.PatchedNotification() # PatchedNotification | (optional)
try:
api_response = api_instance.notification_v1_orgs_notifications_bulk_update_partial_update(org, patched_notification=patched_notification)
print("The response of NotificationApi->notification_v1_orgs_notifications_bulk_update_partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_notifications_bulk_update_partial_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
patched_notification | PatchedNotification | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification notification_v1_orgs_notifications_retrieve(org, channel=channel, end_date=end_date, exclude_channel=exclude_channel, start_date=start_date, status=status)
Get notifications for a user
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
channel = 'channel_example' # str | (optional)
end_date = 'end_date_example' # str | (optional)
exclude_channel = 'exclude_channel_example' # str | (optional)
start_date = 'start_date_example' # str | (optional)
status = 'status_example' # str | (optional)
try:
api_response = api_instance.notification_v1_orgs_notifications_retrieve(org, channel=channel, end_date=end_date, exclude_channel=exclude_channel, start_date=start_date, status=status)
print("The response of NotificationApi->notification_v1_orgs_notifications_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_notifications_retrieve: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
channel | str | [optional] | |
end_date | str | [optional] | |
exclude_channel | str | [optional] | |
start_date | str | [optional] | |
status | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification notification_v1_orgs_notifications_update(org, notification)
Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
notification = iblai.Notification() # Notification |
try:
api_response = api_instance.notification_v1_orgs_notifications_update(org, notification)
print("The response of NotificationApi->notification_v1_orgs_notifications_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_notifications_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
notification | Notification |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification notification_v1_orgs_users_notifications_bulk_update_partial_update(org, user_id, patched_notification=patched_notification)
Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.models.patched_notification import PatchedNotification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
user_id = 'user_id_example' # str |
patched_notification = iblai.PatchedNotification() # PatchedNotification | (optional)
try:
api_response = api_instance.notification_v1_orgs_users_notifications_bulk_update_partial_update(org, user_id, patched_notification=patched_notification)
print("The response of NotificationApi->notification_v1_orgs_users_notifications_bulk_update_partial_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_users_notifications_bulk_update_partial_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
user_id | str | ||
patched_notification | PatchedNotification | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationCount notification_v1_orgs_users_notifications_count_retrieve(org, user_id, channel=channel, status=status)
Get notifications count for a user
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification_count import NotificationCount
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
user_id = 'user_id_example' # str |
channel = 'channel_example' # str | (optional)
status = 'status_example' # str | (optional)
try:
api_response = api_instance.notification_v1_orgs_users_notifications_count_retrieve(org, user_id, channel=channel, status=status)
print("The response of NotificationApi->notification_v1_orgs_users_notifications_count_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_users_notifications_count_retrieve: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
user_id | str | ||
channel | str | [optional] | |
status | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
notification_v1_orgs_users_notifications_destroy(notification_id, org, user_id)
Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
notification_id = 'notification_id_example' # str |
org = 'org_example' # str |
user_id = 'user_id_example' # str |
try:
api_instance.notification_v1_orgs_users_notifications_destroy(notification_id, org, user_id)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_users_notifications_destroy: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
notification_id | str | ||
org | str | ||
user_id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No response body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification notification_v1_orgs_users_notifications_retrieve(org, user_id, channel=channel, end_date=end_date, exclude_channel=exclude_channel, start_date=start_date, status=status)
Get notifications for a user
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
user_id = 'user_id_example' # str |
channel = 'channel_example' # str | (optional)
end_date = 'end_date_example' # str | (optional)
exclude_channel = 'exclude_channel_example' # str | (optional)
start_date = 'start_date_example' # str | (optional)
status = 'status_example' # str | (optional)
try:
api_response = api_instance.notification_v1_orgs_users_notifications_retrieve(org, user_id, channel=channel, end_date=end_date, exclude_channel=exclude_channel, start_date=start_date, status=status)
print("The response of NotificationApi->notification_v1_orgs_users_notifications_retrieve:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_users_notifications_retrieve: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
user_id | str | ||
channel | str | [optional] | |
end_date | str | [optional] | |
exclude_channel | str | [optional] | |
start_date | str | [optional] | |
status | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification notification_v1_orgs_users_notifications_update(org, user_id, notification)
Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
- Api Key Authentication (PlatformApiKeyAuthentication):
import iblai
from iblai.models.notification import Notification
from iblai.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# The APIs use bearer tokens for authentication with a prefix of: `Api-Key`
# You can generate an authenticated client using the following helper method
client = get_platform_api_client(
host="https://base.manager.iblai.app",
key=os.environ["API_KEY"]
)
# Create an instance of the API class
api_instance = iblai.NotificationApi(api_client)
org = 'org_example' # str |
user_id = 'user_id_example' # str |
notification = iblai.Notification() # Notification |
try:
api_response = api_instance.notification_v1_orgs_users_notifications_update(org, user_id, notification)
print("The response of NotificationApi->notification_v1_orgs_users_notifications_update:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NotificationApi->notification_v1_orgs_users_notifications_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
org | str | ||
user_id | str | ||
notification | Notification |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]