A AuthMS API Wiki API Reference iam.tianv.com →

PUT /communication/push-tokens/{id}

更新指定推送令牌的激活状态(is_active)。停用后该令牌不再接收推送,重新激活后恢复。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。

通信服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 推送令牌ID

Request Body

Schema: dto.UpdatePushTokenRequest

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes usr_abc123
is_active boolean No True

Responses

StatusDescriptionSchema
200更新成功dto.OKResponse
400请求参数错误dto.SimpleResponse
401未认证或令牌无效dto.SimpleResponse
403无权访问该资源dto.SimpleResponse
404令牌不存在dto.SimpleResponse
500服务内部错误dto.SimpleResponse

Referenced Schemas

dto.OKResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
message string No success

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No