Skip to Content
MosaicMosaicDocs
Tool Reference

SetEntityProperty

Set or update a property value on an entity.

Starter documentation. Features and account details may differ from this deployment.

SetEntityProperty

Set or update a property value on an entity. Tasks are targeted as entity_type='document'. Projects in the Tasks UI are entity_type='initiative'; entity_type='project' still means a folder. Initiatives share the Assignees, Status, Priority and Due Date definitions below and their clearing behavior. Project Status accepts only Not Started (00000001-0000-0000-0002-000000000001), In Progress (...0002), and Completed (...0004); In Review and Canceled are task-only options. Provide the property_definition_id and exactly one value field matching the property's data type.

For multi-select properties — including tags — prefer add_option_ids / remove_option_ids over option_ids: they add or remove just those options atomically, composing with concurrent edits. option_ids replaces the entire value, so a stale read can silently drop options someone else just added; only use it when the user asks to set the value to exactly a given list. To apply a tag, pass the tag set's property_definition_id and the tag's option id (both from ListTags) in add_option_ids; to remove a tag, use remove_option_ids.

Tasks always have these system properties (use these property_definition_id values directly):

  • Assignees (00000001-0000-0000-0000-000000000001): entity type, multi-select. Use entity_refs with entity_type='user' and entity_id='mosaic|user@example.com' for people or 'bot|<agent UUID>' for agents. Adding an agent starts its session and replies in the task discussion.
  • Status (00000001-0000-0000-0000-000000000002): select_string, single. Options: Not Started (00000001-0000-0000-0002-000000000001), In Progress (...0002), In Review (...0003), Completed (...0004), Canceled (...0005).
  • Priority (00000001-0000-0000-0000-000000000003): select_string, single. Options: Low (...0001), Medium (...0002), High (...0003), Urgent (...0004). Option IDs: 00000001-0000-0000-0003-0000000000XX.
  • Due Date (00000001-0000-0000-0000-000000000004): date, single. Use date_value with ISO 8601.
  • Parent Task (00000001-0000-0000-0000-000000000005): entity, single. Use entity_ref with entity_type='task'.
  • Subtasks (00000001-0000-0000-0000-000000000006): entity, multi. Use entity_refs with entity_type='task'.
  • Story Points (00000001-0000-0000-0000-000000000009): number, single. Use number_value.

A task can belong to one project:

  • Project (00000001-0000-0000-0000-000000000014): entity, single. Use entity_ref with entity_type='initiative' and the project UUID; send no value field to remove the task from its project. Setting it requires edit access to the task and the project, and the project's agents are assigned to the task.

CRM companies (entity_type='company', entity_id=the company UUID) always have these system properties:

  • Stage (00000001-0000-0000-0000-000000000010): select_string, single. Use option_id. Default options: Lead (00000001-0000-0000-0010-000000000001), Qualified (...0002), Demo (...0003), Trial (...0004), Negotiation (...0005), Customer (...0006), Churned (...0007). Teams can customize their stages, so prefer calling GetCompany or GetEntityProperties first to get the valid stage option ids. This is the company's own Stage, not a deal's stage in a CRM pipeline: move pipeline deals with UpdatePipelineEntries.
  • Owner (00000001-0000-0000-0000-000000000011): entity, single. Use entity_ref with entity_type='user' and entity_id='mosaic|user@example.com'.
  • Revenue (00000001-0000-0000-0000-000000000012): number, single. Use number_value (dollars). Any member of the owning team can edit visible company properties; hidden records remain admin/owner-only.

Any entity (task, document, call, ...) can be associated with CRM records through these system properties:

  • Companies (00000001-0000-0000-0000-00000000000c): entity, multi. Use entity_refs with entity_type='company' and the company UUID.
  • Contacts (00000001-0000-0000-0000-000000000013): entity, multi. Use entity_refs with entity_type='contact' and the contact UUID.

For non-system or custom properties, call GetEntityProperties first to discover property_definition_id values and options.

Parameters

ParameterTypeRequiredDescription
entity_idstringYesThe ID of the entity to update.
entity_type"document" | "initiative" | "project" | "thread" | "channel" | "call" | "user" | "company"YesCanonical entity type accepted when an AI tool targets an entity's properties. Tasks are targeted as document; email threads (type email in ListEntities and search results) are targeted as thread.
property_definition_idstringYesThe property definition ID. Get this from GetEntityProperties results.
boolean_valuebooleanNoFor boolean properties.
date_valuestringNoFor date properties (ISO 8601 date-time).
date_range_valueToolDateRangeNoFor date_range properties: the start and end (ISO 8601 date-times); the end may not come before the start.
number_valuenumberNoFor number properties.
string_valuestringNoFor string properties.
option_idstringNoFor single-select properties. The option UUID from available options.
option_idsstring[]NoFor multi-select properties. Replaces the entire value with these option UUIDs — prefer add_option_ids / remove_option_ids for adding or removing specific options.
add_option_idsstring[]NoFor multi-select properties (including tags): add these options to the current value atomically without touching other options. Cannot be combined with other value fields.
remove_option_idsstring[]NoFor multi-select properties (including tags): remove these options from the current value atomically without touching other options. Removing an absent option is a no-op. Cannot be combined with other value fields.
entity_refToolEntityRefNoFor single entity reference properties.
entity_refsToolEntityRef[]NoFor multi entity reference properties.
link_urlstringNoFor single link properties.
link_urlsstring[]NoFor multi link properties.

On this page