ibl-data-manager (3.59.0-ai-plus)
API for iblai
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/
- 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-prompt/orgs/{org}/users/{user_id}/prompt/?category=0&created_by=string&filter_by=string&mentor_unique_id=string&tag=0&visibility=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"text": "What are the benefits of exercise?",
"category": "health",
"tags": [
1,
2
],
"mentor": 3,
"prompt_visibility": "viewable_by_anyone"
}'
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
{ "text": "What are the benefits of exercise?", "category": "health", "tags": [ 1, 2 ], "mentor": 3, "prompt_visibility": "viewable_by_anyone" }
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{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-prompt/orgs/{org}/users/{user_id}/prompt/{id}/?category=0&created_by=string&filter_by=string&mentor_unique_id=string&tag=0&visibility=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
{ "id": 0, "mentor": "ecbf8dc6-e97d-4602-939f-cda86082faa0", "tone": "string", "style": "string", "language": "string", "tags": [ 0 ], "is_system": true, "metadata": null, "category": "string", "prompt": "string", "title": "string", "description": "string", "prompt_visibility": "viewable_by_tenant_admins", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "created_by": "string", "platform": 0 }
Request
Update an existing prompt.
Args: request: HTTP request containing updated prompt data.
Returns: Response with updated prompt details.
Raises: ValidationError: If the input data is invalid. PermissionDenied: If the prompt is system-generated and cannot be edited.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/prompt/{id}/
- 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-prompt/orgs/{org}/users/{user_id}/prompt/{id}/?category=0&created_by=string&filter_by=string&mentor_unique_id=string&tag=0&visibility=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"text": "Updated prompt text",
"category": "updated_category",
"tags": [
3,
4
],
"mentor": 1,
"prompt_visibility": "viewable_by_admins"
}'
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
viewable_by_tenant_admins
- Viewable By Tenant Adminsviewable_by_tenant_students
- Viewable By Tenant Studentsviewable_by_anyone
- Viewable By Anyone
{ "text": "Updated prompt text", "category": "updated_category", "tags": [ 3, 4 ], "mentor": 1, "prompt_visibility": "viewable_by_admins" }