[comment]: # translation:outdated

[comment]: # ({c71a2e54-c71a2e54})
# correlation.update

[comment]: # ({/c71a2e54-c71a2e54})

[comment]: # ({277763f5-b9562236})
### Опис

`object correlation.update(object/array correlations)`

Овај метод омогућава ажурирање постојећих корелација.

::: noteclassic
Овај метод је доступан само типу корисника *супер администратор*.
Дозволе за позивање методе могу се опозвати у подешавањима улоге корисника. Видите
[User
roles](/manual/web_interface/frontend_sections/users/user_roles)
за више информација.
:::

[comment]: # ({/277763f5-b9562236})

[comment]: # ({2ce4a441-326bc80e})
### Параметери

`(object/array)` Својства корелације треба ажурирати.

Својство `correlationid` мора бити дефинисано за сваку корелацију, сва
остала својства су опциона. Биће ажурирана само пренесена својства, 
сва остала ће остати непромењена.

Додатно метод [standard correlation
properties](object#correlation), прихвата следеће
параметре.

|Parameter|[Type](/manual/api/reference_commentary#data_types)|Description|
|--|--|------|
|filter|object|[Correlation filter](/manual/api/reference/correlation/object#correlation_filter) објекат за замену тренутног филтера.|
|operations|array|[Correlation operations](/manual/api/reference/correlation/object#correlation_operation) за замену постојећих операција.|

[comment]: # ({/2ce4a441-326bc80e})

[comment]: # ({13e1dc13-13e1dc13})
### Повратне вредности

`(object)` Враћа објекат, који садржи ID-ијеве ажуриране
корелације под својством `correlationid`.

[comment]: # ({/13e1dc13-13e1dc13})

[comment]: # ({b41637d2-b41637d2})
### Примери

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({801b5d8b-67bb2dfb})
#### Онемогући корелацију

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "correlation.update",
    "params": {
        "correlationid": "1",
        "status": "1"
    },
    "id": 1
}
```

Одговор:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "correlationids": [
            "1"
        ]
    },
    "id": 1
}
```

[comment]: # ({/801b5d8b-67bb2dfb})

[comment]: # ({df1d1004-d6ef1778})
#### Замени услове, али задржи метод евалуације

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "correlation.update",
    "params": {
        "correlationid": "1",
        "filter": {
            "conditions": [
                {
                    "type": 3,
                    "oldtag": "error",
                    "newtag": "ok"
                }
            ]
        }
    },
    "id": 1
}
```

Одговор:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "correlationids": [
            "1"
        ]
    },
    "id": 1
}
```

[comment]: # ({/df1d1004-d6ef1778})

[comment]: # ({e7d15410-e7d15410})
### Погледајте такође

-   [Correlation filter](object#correlation_filter)
-   [Correlation operation](object#correlation_operation)

[comment]: # ({/e7d15410-e7d15410})

[comment]: # ({40fa665f-40fa665f})
### Извор

CCorrelation::update() у
*ui/include/classes/api/services/CCorrelation.php*.

[comment]: # ({/40fa665f-40fa665f})
