POST api/item_rule_bundle/create_bundle_newversion

Request Information

URI Parameters

None.

Body Parameters

ItemRuleWholeBundle
NameDescriptionTypeAdditional information
center_id

integer

None.

bundle_detail

item_rule_bundle

None.

rule_details

Collection of item_rule

None.

Request Formats

application/json, text/json

Sample:
{
  "center_id": 1,
  "bundle_detail": {
    "id": 1,
    "cluster_id": 2,
    "center_id": 3,
    "create_time": "2024-10-05T10:21:59.240743+07:00",
    "modify_time": "2024-10-05T10:21:59.240743+07:00",
    "modify_by": 6,
    "rs_id": 64,
    "isactive": 64,
    "original_rule_id": 1,
    "title": "sample string 9",
    "version": 10,
    "detail": "sample string 11",
    "order": 12,
    "vas_type_id": 13
  },
  "rule_details": [
    {
      "id": 1,
      "cluster_id": 2,
      "center_id": 3,
      "create_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_by": 6,
      "rs_id": 64,
      "order": 8,
      "bundle_id": 9,
      "rule_type_id": 10,
      "rule_version": 11,
      "item_group_id": 12,
      "item_id": 13,
      "use_count": 14.0,
      "item_unit_id": 15,
      "vas_type": 16
    },
    {
      "id": 1,
      "cluster_id": 2,
      "center_id": 3,
      "create_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_by": 6,
      "rs_id": 64,
      "order": 8,
      "bundle_id": 9,
      "rule_type_id": 10,
      "rule_version": 11,
      "item_group_id": 12,
      "item_id": 13,
      "use_count": 14.0,
      "item_unit_id": 15,
      "vas_type": 16
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ItemRuleWholeBundle
NameDescriptionTypeAdditional information
center_id

integer

None.

bundle_detail

item_rule_bundle

None.

rule_details

Collection of item_rule

None.

Response Formats

application/json, text/json

Sample:
{
  "center_id": 1,
  "bundle_detail": {
    "id": 1,
    "cluster_id": 2,
    "center_id": 3,
    "create_time": "2024-10-05T10:21:59.240743+07:00",
    "modify_time": "2024-10-05T10:21:59.240743+07:00",
    "modify_by": 6,
    "rs_id": 64,
    "isactive": 64,
    "original_rule_id": 1,
    "title": "sample string 9",
    "version": 10,
    "detail": "sample string 11",
    "order": 12,
    "vas_type_id": 13
  },
  "rule_details": [
    {
      "id": 1,
      "cluster_id": 2,
      "center_id": 3,
      "create_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_by": 6,
      "rs_id": 64,
      "order": 8,
      "bundle_id": 9,
      "rule_type_id": 10,
      "rule_version": 11,
      "item_group_id": 12,
      "item_id": 13,
      "use_count": 14.0,
      "item_unit_id": 15,
      "vas_type": 16
    },
    {
      "id": 1,
      "cluster_id": 2,
      "center_id": 3,
      "create_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_time": "2024-10-05T10:21:59.240743+07:00",
      "modify_by": 6,
      "rs_id": 64,
      "order": 8,
      "bundle_id": 9,
      "rule_type_id": 10,
      "rule_version": 11,
      "item_group_id": 12,
      "item_id": 13,
      "use_count": 14.0,
      "item_unit_id": 15,
      "vas_type": 16
    }
  ]
}