module Restforce::Concerns::API
def describe_layouts(sobject, layout_id = nil)
# => { ... }
client.describe_layouts('Account', '012E0000000RHEp')
# get the layout for the specified Id for the sobject
# => { ... }
client.describe_layouts('Account')
# get the layouts for the sobject
Examples:
This resource was introduced in version 28.0.
multiple Record Types.
specified sobject type, or URIs for layouts if the sobject has
Public: Returns a detailed description of the Page Layout for the
def describe_layouts(sobject, layout_id = nil) if layout_id api_get("sobjects/#{sobject.to_s}/describe/layouts/#{layout_id}").body else api_get("sobjects/#{sobject.to_s}/describe/layouts").body end end