Skip to main content
Identities

启用 Identity

启用一个 Forward Identity。

POST /api/v1/forward/identities/{identity_id}/enable

请求头

Header是否必填说明
AuthorizationBearer <PAT 或 SAT>

路径参数

参数类型是否必填说明
identity_idstringForward Identity ID。

示例响应

HTTP 200 OK
{
  "id": "idn_019eabc123",
  "enabled": true
}

响应字段

字段类型说明
idstringIdentity ID。
enabledboolean启用后的状态,固定为 true

错误

HTTPTypeCode触发条件
401authentication_errorauthentication_requiredPAT 或 SAT 无效、已过期或缺失。
404not_found_error-Identity 不存在或当前调用方不可见。
409conflict_errorADMIN_IDENTITY_READ_ONLY目标为管理员 Identity。