Query Approval Node

Last Updated on : 2023-06-21 07:13:02

Query the approval node of a meeting based on the meeting reservation ID.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
reservation_idStringquerytrueThe reservation ID.

Return parameter

Parameter nameTypeDescription
resultListThe query result.

Description of result

Parameter nameTypeDescription
approval_typeStringThe task node type. Valid values:
  • anyOneSign: The approval is granted after any of the approvers agrees.
  • allMustSign: The approval is granted only after all approvers agree.
nodesListThe data list of nodes.

Description of nodes

Parameter nameTypeDescription
idStringThe ID of a specified task node.
statusIntegerThe status of a specified task. Valid values:
  • 0: being processed.
  • 1: rejected.
  • 2: approved.
  • 3: no need to process.
gmt_createLongThe time when it is created.
gmt_modifiedLongThe time when it is modified.

Request example

GET: /v2.0/iot-03/meeting-approvals/nodes?reservation_id=148080453577657****

Return example

{
    "result": [
        {
            "approval_type": "allMustSign",
            "nodes": [
                {
                    "gmt_create": 1641886288132,
                    "gmt_modified": 1641886310352,
                    "id": "bay163704644561****",
                    "status": 2
                }
            ]
        },
        {
            "approval_type": "allMustSign",
            "nodes": [
                {
                    "gmt_create": 1641886310368,
                    "gmt_modified": 1641886310484,
                    "id": "bay164144073495****",
                    "status": 0
                }
            ]
        }
    ],
    "t": 1641886748022,
    "success": true
}

Error code

For more information, see error code.