Actions14
- Entidades Actions
- Documentos Actions
- Relacionamentos Actions
- Metadata Actions
Entidades → Editar registro
AI-generatedSummary
Update a record of a specified entity in EspoCRM by providing the record ID and the fields to update, either as individual field-value pairs or as a JSON object.
Inputs
- Entidade (required) — The EspoCRM entity (scope) where the record resides.
- ID do Registro (required) — The unique identifier of the record to update.
- Modo de Entrada (required) — Selects the input mode for specifying the updates: either as separate fields or as a JSON object.
- Campos (if Modo de Entrada = Campo a campo) (required) — The list of fields and their values to update in the record.
- Corpo (JSON) (if Modo de Entrada = JSON) (required) — A JSON object representing the fields and values to update in the record.
- Opções (Atualizar) — Optional update options, includes the 'Version Number' for concurrency control via header 'X-Version-Number'.
Output shape
a single record
Returns the updated record as a JSON object. Throws an error if the update fails or if no fields are provided.
Examples
Example 1: Update a record's fields by specifying each field and value individually.
Select the entity, provide the record ID, choose 'Campo a campo' for input mode, and set the fields with their new values.
Example 2: Update a record by sending a JSON payload.
Select the entity, provide the record ID, choose 'JSON' for input mode, and enter a JSON object with fields and their new values.
