Update Process Element rpa.item.update

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

Scope: rpa

Who can execute the method: any user

DEPRECATED

The development of this method has been halted. Please use Smart scripts as an alternative functionality.

This method updates the element with the identifier id in the process with the identifier typeId.

Method Parameters

Required parameters are marked with *

Name
type

Description

typeId
integer

Process identifier

id
integer

Element identifier

fields*
object

Object containing values for custom fields of the element

Parameter fields

Name
type

Description

stageId
integer

Stage identifier

UF_RPA_...
any

Values for custom fields. The format for passing values depends on the field type

Code Examples

  1. Upload a new file to replace the old one (non-multiple field)

    To replace a file in a non-multiple field, simply upload the new file. The old one will be automatically deleted.

    {
                "fields": {
                    "UF_RPA_1_1585069397": [
                        "myfile.pdf", "...base64_encoded_file_content..."
                    ]
                }
            }
            
  2. Remove the value of a custom file field

    To do this, simply pass an empty string '' instead of the value.

  3. Keep the value of a non-multiple file field unchanged

    The simplest option is to not include the key for this field in fields. However, if you need to pass it without changing it, you should provide a list where the key id contains the file identifier.

    {
                "fields": {
                    "UF_RPA_1_1585069397": {
                        "id": 433    
                    }
                }
            }
            

    Warning

    If a value different from the current one is passed in id, the field value will be reset and the file will be deleted.

  4. Working with a multiple file field

    The value of a multiple field is an array. Each element of the array follows the same rules as for non-multiple values.

  5. Partial overwrite of a multiple file field value

    For example, currently the multiple file field contains the values [12, 255, 44].

    You need to keep files 12 and 44, and upload a new file instead of 255.

    The request should look as follows:

    {
                "fields": {
                    "UF_RPA_1_1585069397": [
                        {
                            "id": 12
                        },
                        {
                            "id": 44
                        },
                        [
                            "myNewFile.pdf",
                            "...base64_encoded_file_content..."
                        ]
                    ]
                }
            }
            

Continue Learning