Let the platform do the work

//:record/children GET

Overview

Retrieves all children of selected record.

Request Arguments

Name Type Description Required
module String The name of sugar module that contains a nested set data and implements the NestedSetInterface. True
:record String The ID of record True

Response Arguments

This endpoint does not return any response arguments.

Response

[{
    "id": "045c1de6-327b-11e4-818b-5404a67f3363",
    "name": "Financial",
    "date_entered": null,
    "date_modified": null,
    "modified_user_id": null,
    "created_by": null,
    "description": null,
    "deleted": "0",
    "source_id": null,
    "source_type": null,
    "source_meta": null,
    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
    "lft": "11",
    "rgt": "14",
    "level": "2"
}, {
    "id": "0f65a6c7-327b-11e4-818b-5404a67f3363",
    "name": "Agreements",
    "date_entered": null,
    "date_modified": null,
    "modified_user_id": null,
    "created_by": null,
    "description": null,
    "deleted": "0",
    "source_id": null,
    "source_type": null,
    "source_meta": null,
    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
    "lft": "15",
    "rgt": "16",
    "level": "2"
}, {
    "id": "14d30bf3-327b-11e4-818b-5404a67f3363",
    "name": "Clients",
    "date_entered": null,
    "date_modified": null,
    "modified_user_id": null,
    "created_by": null,
    "description": null,
    "deleted": "0",
    "source_id": null,
    "source_type": null,
    "source_meta": null,
    "root": "935d3e07-327a-11e4-818b-5404a67f3363",
    "lft": "17",
    "rgt": "18",
    "level": "2"
}]

Change Log

Version Change
v10 Added /<module>/:record/children GET endpoint.