Playgrounds (GenAI)¶
This page outlines the operations, endpoints, parameters, and example requests and responses for the Playgrounds (GenAI).
GET /api/v2/genai/playgrounds/¶
List playgrounds.
Code samples¶
# You can also use wget
curl -X GET https://app.datarobot.com/api/v2/genai/playgrounds/ \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
useCaseId | query | any | false | Only retrieve the playgrounds linked to the specified use cases. |
offset | query | integer | false | Skip the specified number of values. |
limit | query | integer | false | Retrieve only the specified number of values. |
search | query | any | false | Only retrieve the playgrounds with names matching the search query. |
sort | query | any | false | Apply this sort order to the results. Valid options are "name", "description", "creationDate", "creationUserId", "lastUpdateDate", "lastUpdateUserId", "savedLLMBlueprintsCount". Prefix the attribute name with a dash to sort in descending order, e.g., sort=-creationDate. |
Example responses¶
200 Response
{
"count": 0,
"data": [
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
],
"next": "string",
"previous": "string",
"totalCount": 0
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful Response | ListPlaygroundsResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
POST /api/v2/genai/playgrounds/¶
Create a new playground.
Code samples¶
# You can also use wget
curl -X POST https://app.datarobot.com/api/v2/genai/playgrounds/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Body parameter¶
{
"description": "string",
"name": "string",
"useCaseId": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | CreatePlaygroundRequest | true | none |
Example responses¶
201 Response
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful Response | PlaygroundResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
DELETE /api/v2/genai/playgrounds/{playgroundId}/¶
Delete an existing playground.
Code samples¶
# You can also use wget
curl -X DELETE https://app.datarobot.com/api/v2/genai/playgrounds/{playgroundId}/ \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
playgroundId | path | string | true | The ID of the playground to delete. |
Example responses¶
422 Response
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Successful Response | None |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
GET /api/v2/genai/playgrounds/{playgroundId}/¶
Retrieve an existing playground.
Code samples¶
# You can also use wget
curl -X GET https://app.datarobot.com/api/v2/genai/playgrounds/{playgroundId}/ \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
playgroundId | path | string | true | The ID of the playground to retrieve. |
Example responses¶
200 Response
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful Response | PlaygroundResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
PATCH /api/v2/genai/playgrounds/{playgroundId}/¶
Edit an existing playground.
Code samples¶
# You can also use wget
curl -X PATCH https://app.datarobot.com/api/v2/genai/playgrounds/{playgroundId}/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Body parameter¶
{
"description": "string",
"name": "string"
}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
playgroundId | path | string | true | The ID of the playground to edit. |
body | body | EditPlaygroundRequest | true | none |
Example responses¶
200 Response
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
Responses¶
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful Response | PlaygroundResponse |
422 | Unprocessable Entity | Validation Error | HTTPValidationErrorResponse |
To perform this operation, you must be authenticated by means of one of the following methods:
BearerAuth
Schemas¶
CreatePlaygroundRequest
{
"description": "string",
"name": "string",
"useCaseId": "string"
}
CreatePlaygroundRequest
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
description | string | true | maxLength: 5000 |
The description of the playground. |
name | string | true | maxLength: 5000 |
The name of the playground. |
useCaseId | string | true | The ID of the use case to link the playground to. |
EditPlaygroundRequest
{
"description": "string",
"name": "string"
}
EditPlaygroundRequest
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
description | string¦null | false | maxLength: 5000 |
If specified, updates the playground description to this value. |
name | string¦null | false | maxLength: 5000 |
If specified, renames the playground to this value. |
HTTPValidationErrorResponse
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
HTTPValidationErrorResponse
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
detail | [ValidationError] | false | none |
ListPlaygroundSortQueryParam
"name"
ListPlaygroundSortQueryParam
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
ListPlaygroundSortQueryParam | string | false | Sort order values for listing playgrounds. |
Enumerated Values¶
Property | Value |
---|---|
ListPlaygroundSortQueryParam | [name , -name , description , -description , creationUserId , -creationUserId , creationDate , -creationDate , lastUpdateUserId , -lastUpdateUserId , lastUpdateDate , -lastUpdateDate , savedLLMBlueprintsCount , -savedLLMBlueprintsCount , llmBlueprintsCount , -llmBlueprintsCount ] |
ListPlaygroundsResponse
{
"count": 0,
"data": [
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
],
"next": "string",
"previous": "string",
"totalCount": 0
}
ListPlaygroundsResponse
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | integer | true | The number of records on this page. | |
data | [PlaygroundResponse] | true | The list of records. | |
next | string¦null | true | The URL to the next page, or null if there is no such page. |
|
previous | string¦null | true | The URL to the previous page, or null if there is no such page. |
|
totalCount | integer | true | The total number of records. |
PlaygroundResponse
{
"creationDate": "2019-08-24T14:15:22Z",
"creationUserId": "string",
"description": "string",
"id": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"lastUpdateUserId": "string",
"llmBlueprintsCount": 0,
"name": "string",
"savedLLMBlueprintsCount": 0,
"useCaseId": "string",
"userName": "string"
}
PlaygroundResponse
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
creationDate | string(date-time) | true | The creation date of the playground (ISO 8601 formatted). | |
creationUserId | string | true | The ID of the user that created this playground. | |
description | string | true | The description of the playground. | |
id | string | true | The ID of the playground. | |
lastUpdateDate | string(date-time) | true | The date of the most recent update of this playground (ISO 8601 formatted). | |
lastUpdateUserId | string | true | The ID of the user that made the most recent update to this playground. | |
llmBlueprintsCount | integer | true | The number of LLM blueprints in this playground. | |
name | string | true | The name of the playground. | |
savedLLMBlueprintsCount | integer | true | The number of saved LLM blueprints in this playground. | |
useCaseId | string | true | The ID of the use case this playground belongs to. | |
userName | string | true | The name of the user that created this playground. |
ValidationError
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
ValidationError
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
loc | [anyOf] | true | none |
anyOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none |
or
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | integer | false | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
msg | string | true | none | |
type | string | true | none |