CreateStarOpsThread - Create a DevOps AI thread
Applicable editions | Central edition, Region edition |
Service endpoint and authorization
Obtain a service endpoint and replace {domain} in the API request syntax.
Obtain an organization ID: Required only for the Central edition. Go to the organization management console and get the organization ID on the Basic Information page.
Product | Resource | Required permission |
DevOps AI Assistant | Session | Read and write |
Request syntax
Central edition
POST https://{domain}/oapi/v1/aiAssistant/organizations/{organizationId}/threadsRegion edition
POST https://{domain}/oapi/v1/aiAssistant/threadsRequest headers
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | The personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | In | Required | Description | Example |
organizationId | string | path |
| [Description pending] | |
- | object | body | No | [Description pending] |
Request examples
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/aiAssistant/organizations/{organizationId}/threads' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
}'Region edition
curl -X 'POST' \
'https://{domain}/oapi/v1/aiAssistant/threads' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
}'Response parameters
Parameter | Type | Description | Example |
| - | object | ||
threadId | string | Thread ID | |
webUrl | string | webUrl of the thread. Access the thread via https://<domain-name><webUrl> |
Response sample
{
"threadId": "thread-xxxxxx-xxxxxxxxxxxx",
"webUrl": "/workbench/ai?threadId=thread-xxxxxx-xxxxxxxxxxxx"
}Error codes
For error codes, see the Error Code Center.