Update record layout
Code Mode: praxis.crm.layouts.update
HTTP: PUT /crm/v1/layouts/{objectType}
Replace the shared record-page layout for an object type from schemas.list. Unlike HubSpot, CRM exposes this presentation as an API resource so agents can configure the same record view used by people. Send the complete layout with at most three summary tiles and property names from properties.list; omitted prior sections are removed. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.
签名
praxis.crm.layouts.update(args:{path:{objectType:string};body:{/** Object type whose record page uses this layout, matching the path parameter. e.g. "deals" */ objectType:string;/** Ordered statistic tiles below the record header, with at most three tiles. */ summary:Array<string|{/** Property shown as the numerator or progress value. */ property:string;/** Property supplying the denominator or total for the progress bar. */ of:string}>;/** Ordered internal property names shown in the record property sidebar. */ sidebar:Array<string>;/** Ordered main-column sections for activity, relationships, tables and property groups. */ sections:Array<string>}}):Promise<({/** Object type whose record page uses this layout, matching the path parameter. e.g. "deals" */ objectType:string;/** Ordered statistic tiles below the record header, with at most three tiles. */ summary:Array<string|{/** Property shown as the numerator or progress value. */ property:string;/** Property supplying the denominator or total for the progress bar. */ of:string}>;/** Ordered internal property names shown in the record property sidebar. */ sidebar:Array<string>;/** Ordered main-column sections for activity, relationships, tables and property groups. */ sections:Array<string>})&({/** Affected record references for rendering entity cards in conversations; may be empty for definition-only writes. */ refs:Array<{/** Object type containing the referenced record; use with objects.retrieve. e.g. "deals" */ object:string;/** Record identifier to retrieve with object; obtained from the write result. e.g. "rec_example" */ id:string;/** Console URL for opening the entity card in a conversation or viewing the record. e.g. "https://console.deepraxis.com/crm/deals/rec_example" */ viewer_url:string;/** Optional property changes to render alongside the entity card. */ changes?:Array<{/** Internal name of the property changed by this request. */ property:string;/** Value before the change; null means the property was empty. */ before:string|null;/** Value committed by the change; null means the property was cleared. */ after:string|null}>}>})>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| objectType | path | string | 是 | Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>. |
请求体
| 必填 | 内容类型 | 说明 |
|---|---|---|
| 是 | application/json | Complete replacement layout; objectType must match the path parameter. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | Shared record layout and conversation-card references. |
| 400 | application/json | VALIDATION_ERROR rejects invalid properties or stage rules; supply errors[0].context.properties when requirements are missing, or choose an allowed stage. BAD_REQUEST rejects malformed input; correct the request before retrying. |
| 401 | application/json | The bearer credential is missing or invalid; provide a valid platform API key before retrying. |
| 404 | application/json | OBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation. |
| 409 | application/json | CONFLICT means a unique value is already used or a change-set reversal would overwrite a later value; read the current records and resolve the conflicting values before retrying. |