Query Approval List

Last Updated on : 2023-06-21 07:12:59download

Query the to-do and done list of the specified personnel according to the personnel ID.

API address

GET: /v2.0/iot-03/meeting-approvals

Request parameter

Parameter nameTypeINRequiredDescription
typeStringquerytrueThe status of a specified approval. Valid values: 0: pending for approval. 1: finished.
uidStringquerytrueThe ID of the person who approves the reservation.
page_sizeIntegerqueryfalseThe number of items returned on each page.
page_noIntegerqueryfalseThe page number.

Return parameter

Parameter nameTypeDescription
resultPage

Description of result

Parameter nameTypeDescription
totalLongThe number of items on a page.
listList
has_moreBooleanSpecifies whether to return the next page.

Description of list

Parameter nameTypeDescription
idStringThe ID of a specified approval.
titleStringThe title of a specified approval.
current_stepStringThe current node.
reservation_idStringThe reservation ID.
submit_timeLongThe time when a reservation is submitted.

Request example

GET: /v2.0/iot-03/meeting-approvals?type=0&uid=007&page_size=10&page_no=1

Return example

{
    "result": {
        "list": [
            {
                "submit_time": 1625040656482,
                "title": "VIP Meeting Room No. 44 Approval",
                "reservation_id": "1410148835895808097",
                "id": "1410148836105519137",
                "current_step": "anyOneSign"
            },
            {
                "submit_time": 1625040330438,
                "title": "VIP Meeting Room No. 3 Approval",
                "reservation_id": "1410147468254908448",
                "id": "1410147468573671501",
                "current_step": "anyOneSign"
            },
            {
                "submit_time": 1625040272326,
                "title": "VIP Meeting Room No. 3 Approval",
                "reservation_id": "1410147224574234670",
                "id": "1410147224834281495",
                "current_step": "anyOneSign"
            },
            {
                "submit_time": 1625040162416,
                "title": "VIP Meeting Room No. 3 Approval",
                "reservation_id": "1410146763175632934",
                "id": "1410146763838328869",
                "current_step": "anyOneSign"
            },
            {
                "submit_time": 1624972913054,
                "title": "Meeting Room No. 1 Approval",
                "reservation_id": "1409864696705589333",
                "id": "1409864699574489109",
                "current_step": "anyOneSign"
            }
        ],
        "total": 5,
        "has_more": false
    },
    "t": 1625062730235,
    "success": true
}

Error code

For more information, see error code.