跳转至

默认配置状态修改



POST /api/v1/account/status/modify

概述

Body 请求参数

参数名 类型 必选 说明
accountStatus string Y 账号状态 working-值班中 mute-休假中
例子: working
允许为空: False
允许为空字符串: True

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/account/status/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"accountStatus":"working"}'\
--compressed

响应

{
    "code": 200,
    "content": {
        "name": "xxx",
        "username": "xxxx",
        "email": "xxxx",
        "mobile": "xxx",
        "exterId": "xxx",
        "extend": {
            "lastLoginTime": 1770118534
        },
        "source": "local",
        "nameSpace": "",
        "isUsed": 1,
        "agreeTerms": 0,
        "canaryPublic": false,
        "enableMFA": true,
        "mfaSecret": "*********************",
        "language": "zh",
        "tokenHoldTime": 604800,
        "tokenMaxValidDuration": 2592000,
        "timezone": "",
        "attributes": {},
        "customAttributes": {},
        "statusPageSubs": 0,
        "defaultWorkspace": null,
        "brandKey": "guance",
        "scheduleMobile": "",
        "scheduleEmail": "",
        "ifScheduleMobileEnable": false,
        "ifScheduleEmailEnable": false,
        "accountStatus": "working",
        "id": 3404,
        "uuid": "acnt_xxx",
        "status": 0,
        "creator": "extend",
        "updator": "acnt_xxx",
        "createAt": 1721204694,
        "deleteAt": -1,
        "updateAt": 1770183209.0309908
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "xxx"
} 

文档评价

文档内容是否对您有帮助? ×