API for iblai
- ai_mentor_orgs_users_custom_instruction_update
ibl-data-manager (4.84.1-ai-plus)
Request
Create a new custom instruction for a user.
Args: request: The HTTP request containing the custom instruction data. org: The organization/tenant identifier. user_id: The ID of the user to create custom instructions for.
Returns: Response: The created custom instruction.
Raises: BadRequest: If the provided data is invalid.
- 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}/custom-instruction/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/custom-instruction/
- 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}/custom-instruction/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"content": "Always explain concepts in simple terms with examples."
}'{ "id": 1, "username": "johndoe", "platform_key": "main", "content": "Always explain concepts in simple terms with examples.", "created_at": "2023-01-01T12:00:00Z", "updated_at": "2023-01-01T12:00:00Z" }
Request
Update an existing custom instruction for a user.
Args: request: The HTTP request containing the updated custom instruction data. org: The organization/tenant identifier. user_id: The ID of the user to update custom instructions for.
Returns: Response: The updated custom instruction.
Raises: BadRequest: If the provided data is invalid. NotFound: If no custom instruction exists for the user.
- 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}/custom-instruction/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/custom-instruction/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/custom-instruction/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"content": "Always explain concepts in simple terms with examples and analogies."
}'{ "id": 1, "username": "johndoe", "platform_key": "main", "content": "Always explain concepts in simple terms with examples and analogies.", "created_at": "2023-01-01T12:00:00Z", "updated_at": "2023-01-02T14:30:00Z" }
Request
API view for managing disclaimer agreements.
This viewset provides Create Read and Delete operations for disclaimer agreements with different access levels:
Platform Admins:
- Can view all disclaimer agreements for their platform
- Have full access to create (for themselves) and delete agreements for themselves and other users.
- Results are paginated and can be filtered
Students:
- Can only view their own disclaimer agreements
- Limited to agreements where they are the user
- Results are paginated and can be filtered
List endpoint returns paginated results with disclaimer agreement objects:
{
"count": int,
"next": str,
"previous": str,
"results": [
{
"id": int,
"user": str,
"disclaimer": int,
"agreed_at": datetime,
},
...
]
}Detail endpoints return a single disclaimer agreement object with the same structure
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimer-agreements/
- https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/disclaimer-agreements/
- 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}/disclaimer-agreements/?disclaimer=0&mentor_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&page=0&page_size=0&username=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": [ { … } ] }