我们正在使用以下 API 来更新和停用用户,但收到了 403 错误。请告知我们导致此错误的原因。附注:我们使用的是管理员用户的 API 密钥。
停用 API
{{base_url}}/admin/users/316/suspend?api_key={{api_key}}&api_username={{api_username}}
请求体
{
“suspend_until”: “3020-04-17”,
“reason”: “inactive”
}
响应 - 403 禁止访问
电子邮件更新
{{base_url}}/users/{username}/preferences/email?api_key={{api_key}}&api_username={{api_username}}
请求体
{
“email”: “discourse1@example.com”
}
响应 - 403 禁止访问