ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Create a new prompt language.
Args: request: The HTTP request containing the language data. org: The organization/tenant identifier. user_id: The ID of the user creating the language.
Returns: Response: The created prompt language.
Raises: BadRequest: If the provided data is invalid.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/languages/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/languages/
- 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}/languages/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "French",
"code": "fr"
}'
{ "id": 3, "name": "French", "code": "fr" }
Request
Update a specific prompt language.
Args: request: The HTTP request containing the updated language data. org: The organization/tenant identifier. user_id: The ID of the user making the request. language_id: The ID of the language to update.
Returns: Response: The updated prompt language.
Raises: BadRequest: If the provided data is invalid. NotFound: If the specified language does not exist.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_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}/languages/{language_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "French (Updated)",
"code": "fr"
}'
{ "id": 3, "name": "French (Updated)", "code": "fr" }
Request
Delete a specific prompt language.
Args: request: The HTTP request. org: The organization/tenant identifier. user_id: The ID of the user making the request. language_id: The ID of the language to delete.
Returns: Response: A success message if the language was deleted.
Raises: NotFound: If the specified language does not exist.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/
https://base.manager.iblai.app/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-prompt/orgs/{org}/users/{user_id}/languages/{language_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'