MassUpdate

Updates attribute values for multiple records. You can update records from different entities and you can update multiple attributes within the same record.

Syntax

Copy
POST <<i>host_address</i>>/api/openApi/MassUpdate

Content-Type: application/json
            
{
    "ApiInfo": {
        "Token": <<i>access_token</i>>
    },
    "Request": {
        Requests: [
            {    
                "Id": <<i>record_id</i>>,
                "EntityName": <<i>parent_entity</i>>,
                "Values": [
                    {
                        "Attribute": <<i>attribute_name</i>>,
                        "Value": <<i>attribute_value</i>>
                    },
                    
                    ...
            
                    {
                        "Attribute": <<i>attribute_name</i>>,
                        "Value": <<i>attribute_value</i>>
                    }
                ]
            },
            
            ...
            
            {    
                "Id": <<i>record_id</i>>,
                "EntityName": <<i>parent_entity</i>>,
                "Values": [
                    {
                        "Attribute": <<i>attribute_name</i>>,
                        "Value": <<i>attribute_value</i>>
                    },
            
                    ...
            
                    {
                        "Attribute": <<i>attribute_name</i>>,
                        "Value": <<i>attribute_value</i>>
                    }
                ]
            }
        ]    
    }                
}
 
Parameter Description
host_address URL of the FintechOS platform server.
access_token Access token used to connect to the API endpoint. For details, see GetToken.
record_id Unique identifier of the record you wish to update.
parent_entity Name of the parent entity of the record you wish to update.
attribute_name Name of the record's attribute you wish to update.
attribute_value The value you wish to allocate the record's attribute.

Response

Copy
{
    "Id": "af62cae0-2b0a-4344-8534-a72c429a5c30",
    "Message": "Records updated: 12",
    "IsSuccess": true,
    "ClientScript": null,
    "ErrorCode": 0,
    "Serialized": null,
    "UIResult": null
}
 
Parameter Description
Id Unique identifier of one of the records you updated.
Message Indicates the number of records that were updated.
IsSuccess Indicates if the records update was successful.

Examples