My JSON string like this:

  "id": "74",
  "created_at": "2015-07-22 09:36:57",
  "created_by": "1",
  "updated_at": "2015-07-22 09:36:57",
  "updated_by": "1",
  "store": {
    "group_id": "1",
    "website_id": "1",
    "name": "Main Website Store",
    "root_category_id": "2",
    "default_store_id": "1",
    "group": [
        "id": "4",
        "name": "group 4 - store web 2",
        "description": null,
        "level": "1",
        "product": [
            "id": "1",
            "created_at": "2015-07-20 07:54:07",
            "created_by": "1",
            "updated_at": "2015-07-20 07:54:07",
            "updated_by": "1"

it's mean in House have one "store", in "store" have many "group" and in "group" have many "product". I tried adding the attributes as group, product to file api2.xml to manage in the Edit attribute rules but it does not work when I unchecked. "group", "product" are on the table different database.

My api2.xml:

            <house translate="title" module="Hihi_House">
                <title>House API Call</title>
            <house translate="title" module="Hihi_House">
                <title>House API</title>
                    <created_at>Created At</created_at>
                    <created_by>Created By</created_by>
                    <updated_at>Updated At</updated_at>
                    <updated_by>Updated By</updated_by>



1 Answer 1


In api2.xml the attributes you define are top-level attributes. You cannot use them to filter nested data arrays, at least not using unmodified core code.

The only attributes you have defined the will do anything are:

  • id
  • created_at
  • created_by
  • updated_at
  • updated_by
  • store
  • Thank you for the reply, so if the "Edit attribute rules" product had already, so can I link between "house" and "product" to manage attribute? I mean, attributes this api to interact with other attribute api?
    – Tan Nguyen
    Jul 23, 2015 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.