Replace the drawer object-hosted section layout.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/admin/entity-definitions/example/ui/drawer-surface/object-hosted-layout"), Content = new StringContent("{ \"Layout\": { \"Surface\": 0, \"Items\": [ { \"Id\": \"example\", \"ItemKind\": 0, \"BlockKind\": 0, \"StandardBlock\": 0, \"ExtensionKey\": \"example\", \"BindingPath\": { \"RootEntityDefinitionId\": \"example\", \"TargetEntityDefinitionId\": \"example\", \"Label\": \"example\", \"Steps\": [ { \"Direction\": 0, \"SourceEntityDefinitionId\": \"example\", \"SourceReferenceFieldId\": \"example\", \"SourceReferenceFieldKey\": \"example\", \"TargetEntityDefinitionId\": \"example\", \"SourceEntityDisplayNamePlural\": \"example\", \"SourceReferenceFieldDisplayName\": \"example\", \"TargetEntityDisplayNameSingular\": \"example\" } ] }, \"Settings\": {}, \"SettingsVersion\": 1, \"Title\": \"example\", \"Subtitle\": \"example\", \"SortOrder\": 1, \"Visible\": true, \"CollapsedByDefault\": true } ] } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/entity-definitions/example/ui/drawer-surface/object-hosted-layout';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"Layout":{"Surface":0,"Items":[{"Id":"example","ItemKind":0,"BlockKind":0,"StandardBlock":0,"ExtensionKey":"example","BindingPath":{"RootEntityDefinitionId":"example","TargetEntityDefinitionId":"example","Label":"example","Steps":[{"Direction":0,"SourceEntityDefinitionId":"example","SourceReferenceFieldId":"example","SourceReferenceFieldKey":"example","TargetEntityDefinitionId":"example","SourceEntityDisplayNamePlural":"example","SourceReferenceFieldDisplayName":"example","TargetEntityDisplayNameSingular":"example"}]},"Settings":{},"SettingsVersion":1,"Title":"example","Subtitle":"example","SortOrder":1,"Visible":true,"CollapsedByDefault":true}]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/admin/entity-definitions/example/ui/drawer-surface/object-hosted-layout \ --header 'Content-Type: application/json' \ --data '{ "Layout": { "Surface": 0, "Items": [ { "Id": "example", "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "ExtensionKey": "example", "BindingPath": { "RootEntityDefinitionId": "example", "TargetEntityDefinitionId": "example", "Label": "example", "Steps": [ { "Direction": 0, "SourceEntityDefinitionId": "example", "SourceReferenceFieldId": "example", "SourceReferenceFieldKey": "example", "TargetEntityDefinitionId": "example", "SourceEntityDisplayNamePlural": "example", "SourceReferenceFieldDisplayName": "example", "TargetEntityDisplayNameSingular": "example" } ] }, "Settings": {}, "SettingsVersion": 1, "Title": "example", "Subtitle": "example", "SortOrder": 1, "Visible": true, "CollapsedByDefault": true } ] } }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request payload to replace an object-hosted layout for a details page or drawer.
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Request payload to replace an object-hosted layout for a details page or drawer.
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Request payload to replace an object-hosted layout for a details page or drawer.
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Responses
Section titled “Responses”OK
object
Admin-facing object-hosted layout state for a single record surface.
object
Minimal runtime entity metadata used by explicit UI surfaces.
object
Entity definition identifier.
Internal entity key used by runtime routes.
User-facing singular name.
User-facing plural name.
Whether entity comments are enabled.
Whether entity attachments are enabled.
Whether entity tags are enabled.
Whether runtime configured search is available for the definition.
Runtime-exposed statements for this entity.
Runtime statement descriptor exposed to clients together with predicate payloads.
object
Statement identifier.
Stable technical statement key.
User-facing statement label.
Rule evaluation context shared with fast UI runtime evaluation.
object
Current workspace user identifier.
Workspace-local current date in ISO format.
Workspace time zone identifier.
UTC instant when the context was generated.
UTC instant for the next midnight in the workspace time zone.
Owner-scoped runtime values available to rule plans.
object
object
Whether the entity is an enabled Projection Entity.
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Blocks and binding paths currently available to add to this object-hosted layout.
Available block option for host-layout builders.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
object
object
object
Example
{ "Data": { "SurfaceType": 0, "LayoutMode": 0, "Layout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "DefaultLayout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "AvailableBlocks": [ { "BlockKind": 0, "StandardBlock": 0, "Paths": [ { "Steps": [ { "Direction": 0 } ] } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Admin-facing object-hosted layout state for a single record surface.
object
Minimal runtime entity metadata used by explicit UI surfaces.
object
Entity definition identifier.
Internal entity key used by runtime routes.
User-facing singular name.
User-facing plural name.
Whether entity comments are enabled.
Whether entity attachments are enabled.
Whether entity tags are enabled.
Whether runtime configured search is available for the definition.
Runtime-exposed statements for this entity.
Runtime statement descriptor exposed to clients together with predicate payloads.
object
Statement identifier.
Stable technical statement key.
User-facing statement label.
Rule evaluation context shared with fast UI runtime evaluation.
object
Current workspace user identifier.
Workspace-local current date in ISO format.
Workspace time zone identifier.
UTC instant when the context was generated.
UTC instant for the next midnight in the workspace time zone.
Owner-scoped runtime values available to rule plans.
object
object
Whether the entity is an enabled Projection Entity.
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Blocks and binding paths currently available to add to this object-hosted layout.
Available block option for host-layout builders.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
object
object
object
Example
{ "Data": { "SurfaceType": 0, "LayoutMode": 0, "Layout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "DefaultLayout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "AvailableBlocks": [ { "BlockKind": 0, "StandardBlock": 0, "Paths": [ { "Steps": [ { "Direction": 0 } ] } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Admin-facing object-hosted layout state for a single record surface.
object
Minimal runtime entity metadata used by explicit UI surfaces.
object
Entity definition identifier.
Internal entity key used by runtime routes.
User-facing singular name.
User-facing plural name.
Whether entity comments are enabled.
Whether entity attachments are enabled.
Whether entity tags are enabled.
Whether runtime configured search is available for the definition.
Runtime-exposed statements for this entity.
Runtime statement descriptor exposed to clients together with predicate payloads.
object
Statement identifier.
Stable technical statement key.
User-facing statement label.
Rule evaluation context shared with fast UI runtime evaluation.
object
Current workspace user identifier.
Workspace-local current date in ISO format.
Workspace time zone identifier.
UTC instant when the context was generated.
UTC instant for the next midnight in the workspace time zone.
Owner-scoped runtime values available to rule plans.
object
object
Whether the entity is an enabled Projection Entity.
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Object-hosted layout for a single record details page or drawer.
object
One entry in an object-hosted layout for a single record surface.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
Blocks and binding paths currently available to add to this object-hosted layout.
Available block option for host-layout builders.
object
Structured binding path for special host-layout blocks.
object
One reverse-reference hop used by a special host-layout block.
object
object
object
object
object
Example
{ "Data": { "SurfaceType": 0, "LayoutMode": 0, "Layout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "DefaultLayout": { "Surface": 0, "Items": [ { "ItemKind": 0, "BlockKind": 0, "StandardBlock": 0, "BindingPath": { "Steps": [ { "Direction": 0 } ] } } ] }, "AvailableBlocks": [ { "BlockKind": 0, "StandardBlock": 0, "Paths": [ { "Steps": [ { "Direction": 0 } ] } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}