編輯單一自動標籤的生命週期

Update auto tag lifecycle

post

Update lifecycle settings for a specific auto tag

Authorizations
Path parameters
autoTagIdstringRequired

The ID of the auto tag to update

Query parameters
botIdstringRequired

The bot ID for the API request

Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
isActivebooleanRequired

Whether lifecycle feature should be active

Example: true
lifeCycleinteger · min: 1Required

Lifecycle duration/threshold value (must be > 0 for feature to be active)

Example: 30
Responses
200
Auto tag lifecycle updated successfully
application/json
post
POST /api/openapi/autoTag/lifeCycle/update/{autoTagId} HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "secret": "your_secret_key_here",
  "isActive": true,
  "lifeCycle": 30
}
{
  "success": true,
  "message": "Update auto tag lifecycle successfully"
}

Last updated