API for iblai
- ai_mentor_orgs_users_disclaimers_create
ibl-data-manager (4.84.1-ai-plus)
Request
ViewSet for managing mentor disclaimers.
This viewset provides endpoints for creating and managing mentor disclaimers, which are statements or information that mentors need to share with students.
Permissions:
- Platform administrators have full CRUD access
- Students have read-only access
- Unauthenticated users have no access
Endpoints:
- GET /api/orgs/{org}/users/{user_id}/disclaimers/ - List all disclaimers
- POST /api/orgs/{org}/users/{user_id}/disclaimers/ - Create a new disclaimer
- GET /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Retrieve a specific disclaimer
- PUT/PATCH /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Update a disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/add_mentor/ - Add mentor to disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/remove_mentor/ - Remove mentor from disclaimer
Query Parameters:
- Supports filtering via DjangoFilterBackend
- See DisclaimerFilterSet for available filters
Returns: List endpoint returns paginated results with disclaimer objects:
{
"count": int,
"next": str,
"previous": str,
"results": [
{
"id": int,
"title": str,
"content": str,
"mentor": str,
"platform": str,
"created_at": datetime,
"updated_at": datetime
},
...
]
}Detail endpoints return a single disclaimer object with the same structure
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/?active=true&mentor_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&ordering=string&page=0&page_size=0&scope=mentor&search=string' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "count": 123, "next": "http://api.example.org/accounts/?page=4", "previous": "http://api.example.org/accounts/?page=2", "results": [ { … } ] }
Request
ViewSet for managing mentor disclaimers.
This viewset provides endpoints for creating and managing mentor disclaimers, which are statements or information that mentors need to share with students.
Permissions:
- Platform administrators have full CRUD access
- Students have read-only access
- Unauthenticated users have no access
Endpoints:
- GET /api/orgs/{org}/users/{user_id}/disclaimers/ - List all disclaimers
- POST /api/orgs/{org}/users/{user_id}/disclaimers/ - Create a new disclaimer
- GET /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Retrieve a specific disclaimer
- PUT/PATCH /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Update a disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/add_mentor/ - Add mentor to disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/remove_mentor/ - Remove mentor from disclaimer
Query Parameters:
- Supports filtering via DjangoFilterBackend
- See DisclaimerFilterSet for available filters
Returns: List endpoint returns paginated results with disclaimer objects:
{
"count": int,
"next": str,
"previous": str,
"results": [
{
"id": int,
"title": str,
"content": str,
"mentor": str,
"platform": str,
"created_at": datetime,
"updated_at": datetime
},
...
]
}Detail endpoints return a single disclaimer object with the same structure
- application/json
- application/scim+json
- application/x-www-form-urlencoded
- multipart/form-data
- */*
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"scope": "platform",
"content": "string",
"title": "string",
"active": true,
"mentors": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}'{ "id": 0, "scope": "platform", "platform": 0, "content": "string", "title": "string", "active": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "has_agreed": true, "platform_key": "string", "mentors": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] }
Request
ViewSet for managing mentor disclaimers.
This viewset provides endpoints for creating and managing mentor disclaimers, which are statements or information that mentors need to share with students.
Permissions:
- Platform administrators have full CRUD access
- Students have read-only access
- Unauthenticated users have no access
Endpoints:
- GET /api/orgs/{org}/users/{user_id}/disclaimers/ - List all disclaimers
- POST /api/orgs/{org}/users/{user_id}/disclaimers/ - Create a new disclaimer
- GET /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Retrieve a specific disclaimer
- PUT/PATCH /api/orgs/{org}/users/{user_id}/disclaimers/{id}/ - Update a disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/add_mentor/ - Add mentor to disclaimer
- POST /api/orgs/{org}/users/{user_id}/disclaimers/{id}/remove_mentor/ - Remove mentor from disclaimer
Query Parameters:
- Supports filtering via DjangoFilterBackend
- See DisclaimerFilterSet for available filters
Returns: List endpoint returns paginated results with disclaimer objects:
{
"count": int,
"next": str,
"previous": str,
"results": [
{
"id": int,
"title": str,
"content": str,
"mentor": str,
"platform": str,
"created_at": datetime,
"updated_at": datetime
},
...
]
}Detail endpoints return a single disclaimer object with the same structure
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/{id}/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/{id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimers/{id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "id": 0, "scope": "platform", "platform": 0, "content": "string", "title": "string", "active": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "has_agreed": true, "platform_key": "string", "mentors": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] }