Skip to content
中文

Create property group

Code Mode: praxis.crm.properties.groups.create

HTTP: POST /crm/v1/properties/{objectType}/groups

Create a named group for related property definitions of one object type. Obtain objectType from schemas.list; choose a unique internal name and display label, then reuse the returned name as groupName when creating properties. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations.

Signature

praxis.crm.properties.groups.create(args:{path:{objectType:string};body:{/** Property groups are displayed in order starting with the lowest positive integer value. e.g. 0 */ displayOrder?:number;/** A human-readable label that will be shown in CRM. */ label:string;/** The internal property group name, which must be used when referencing the property group via the API. */ name:string}}):Promise<({/** Indicates whether the property group is archived. */ archived:boolean;/** Property groups are displayed in order starting with the lowest positive integer value. e.g. 0 */ displayOrder?:number;/** A human-readable label that will be shown in CRM. */ label:string;/** The internal property group name, which must be used when referencing the property group via the API. */ name: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}>}>})>;

Parameters

NameInTypeRequiredDescription
objectTypepathstringyesObject type name from schemas.list, such as contacts, companies, deals or a custom p_<name>.

Request body

RequiredContent typesDescription
yesapplication/jsonValues for create property group; use internal property names and resource ids from the corresponding list operations.

Responses

StatusContent typesDescription
201application/jsonCreate property group succeeded; inspect the returned resource or result collection.
400application/jsonVALIDATION_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.
401application/jsonThe bearer credential is missing or invalid; provide a valid platform API key before retrying.
404application/jsonOBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation.
409application/jsonCONFLICT 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.