Let the platform do the work

//:record/parent GET

Overview

Retrieves parent node for 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: "e1ae8646-ac90-104a-59d6-5412cf5009b2"
    name: "SugarCategoryExample"
    date_entered: "2014-09-12 10:47:46"
    date_modified: "2014-09-12 10:47:46"
    modified_user_id: "9c9ad14e-1789-3340-f88d-5412cf551d3b"
    created_by: "9c9ad14e-1789-3340-f88d-5412cf551d3b"
    description: null
    deleted: "0"
    source_id: null
    source_type: null
    source_meta: null
    root: "e1ae8646-ac90-104a-59d6-5412cf5009b2"
    lft: "6"
    rgt: "11"
    level: "1"
}

Change Log

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