Add Approval Settings

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

Add approval settings based on the approval type and approver information.

API address

POST: /v2.0/iot-03/meeting-settings/approvals

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
approval_typeString trueThe type of approval. Valid values: allMustSign: The approval is granted only after all approvers agree. anyOneSign: The approval is granted after any of the approvers agrees.
approval_uidsList trueThe ID of the person who approves the reservation.

Return parameter

Parameter nameTypeDescription
resultStringThe returned ID of an approval setting.

Request example

POST: /v2.0/iot-03/meeting-settings/approvals
{
  "approvalType": "anyOneSign",
  "approvalUids": [
    "007",
    "008"
  ]
}

Return example

{
    "result": "141020310224136****",
    "t": 1625053594575,
    "success": true
}

Error code

For more information, see error code.