コンテンツにスキップ

デフォルト設定状態の変更



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

フィードバック

このページは役に立ちましたか?