Set permissions

Allocate permissions

post

version=0.0.1 bizType=customer.app.CustomerApiWebService.editApiPermission Accessible after login

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

API ID

googleCodestringOptional

Google Verification Code

tagstringOptional

API tag, cannot be duplicated

whiteIpsstringOptional

Whitelist IP, bound IP address, separated by commas

phoneCodestringOptional

Mobile verification code, email verification code are required

emailCodestringOptional

Mobile verification code, email verification code are required

phoneSendTokenstringOptional

Send mobile verification code to return token, phoneCode must be passed when not empty

emailSendTokenstringOptional

Send email verification code to return token, emailCode must be passed when not empty

Responses
200
Success
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

Success

{
  "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