设置权限

分配权限

post

version=0.0.1 bizType=customer.app.CustomerApiWebService.editApiPermission 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
idinteger · int64Optional

api的ID

googleCodestringOptional

谷歌验证码

tagstringOptional

API标签,不能重复

whiteIpsstringOptional

白名单IP,绑定的ip地址,以,分割

phoneCodestringOptional

手机验证码、邮箱验证一个必填

emailCodestringOptional

手机验证码、邮箱验证一个必填

phoneSendTokenstringOptional

发送手机验证码返回token,phoneCode不为空时必传

emailSendTokenstringOptional

发送邮箱验证码返回token,emailCode不为空时必传

Responses
200
成功
application/json
post
POST /api/global/customer.app.CustomerApiWebService.editApiPermission HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 191

{
  "id": 1,
  "googleCode": "text",
  "tag": "text",
  "permissionList": [
    {
      "code": "text",
      "status": 1
    }
  ],
  "whiteIps": "text",
  "phoneCode": "text",
  "emailCode": "text",
  "phoneSendToken": "text",
  "emailSendToken": "text"
}
200

成功

{
  "msg": "Success",
  "fail": false,
  "trace": "x-ed6d9fab-3efb-4df6-9375-613c0ede13a8-1677655915849",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 45611250,
  "msgParams": null,
  "ok": true
}

Last updated