XRToken API Docs

Update asset group

API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai

Update the name or description of an asset group. Only groups owned by the current user can be modified.

PUT
/v1/asset-groups/{groupId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication (OpenAI format). Pass in the Authorization header:

Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Path Parameters

groupId*string

Asset group ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X put "https://api.xrtoken.ai/v1/asset-groups/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "Id": "string",
  "Name": "string",
  "Description": "string",
  "GroupType": "AIGC",
  "CreateTime": "string",
  "UpdateTime": "string"
}
{
  "error": "model field is required",
  "type": "invalid_request_error"
}
{
  "error": "invalid or missing API key",
  "type": "auth_error"
}
{
  "error": "string",
  "type": "invalid_request_error"
}
{
  "error": "rate limit exceeded",
  "type": "rate_limit_error"
}