Update a user tag

Update the name and description of a user tag. Updating a tag does not automatically change other information for associated users.

POST https://api.moi.matrixorigin.cn/v5/user/tag/update

Preparation before calling

First select a user tag.

Prepare a personal access token with the required permissions for the target workspace and the target workspace ID.

Request parameters

curl -X POST "https://api.moi.matrixorigin.cn/v5/user/tag/update" \
  -H "X-API-Key: $AI_STUDIO_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1001,
    "name": "example",
    "description": "Example tag"
  }'

Parameter

Type

Required

Description

id

integer

Yes

Tag ID.

name

string

Yes

Tag name.

description

string

No

Updated tag description. When omitted, an empty string is saved.

The tag name has the same character and length limits as when creating a tag. This request writes both the name and description.

Successful response

On success, returns the updated tag ID.

{
  "code": "OK",
  "msg": "OK",
  "data": {
    "id": 12
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.id

integer

Updated tag ID.

Error response

{
  "code": "INVALID_ARGUMENT",
  "msg": "Invalid request parameters",
  "data": null
}

Field

Type

Description

code

string

Error code.

msg

string

Error message.

data

null

—

Last updated on