CreateStarOpsThread - Create a DevOps AI thread

Updated at:

Applicable editions

Central edition, Region edition

Service endpoint and authorization

Product

Resource

Required permission

DevOps AI Assistant

Session

Read and write

Request syntax

Central edition

POST https://{domain}/oapi/v1/aiAssistant/organizations/{organizationId}/threads

Region edition

POST https://{domain}/oapi/v1/aiAssistant/threads

Request 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

  • Yes (for the Central edition)

  • No (for the Region edition)

[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.