[comment]: # ({c71a2e54-c71a2e54})
# עדכון.מתאם

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

[comment]: # ({b9562236-b9562236})
### תיאור

`object correlation.update(מתאמי אובייקט/מערך)`

שיטה זו מאפשרת לעדכן מתאמים קיימים.

::: noteclassic
שיטה זו זמינה רק לסוג משתמש *סופר אדמין*.
ניתן לבטל הרשאות להתקשר למתודה בהגדרות תפקידי המשתמש. לִרְאוֹת
[מִשׁתַמֵשׁ
תפקידים](/manual/web_interface/frontend_sections/administration/user_roles)
למידע נוסף.
:::

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

[comment]: # ({ce355bf6-326bc80e})
### פרמטרים

`(אובייקט/מערך)` יש לעדכן מאפייני מתאם.

יש להגדיר את המאפיין `correlationid` עבור כל מתאם, הכל
נכסים אחרים הם אופציונליים. רק הנכסים שעברו יהיו
עודכן, כל השאר יישארו ללא שינוי.

בנוסף ל- [מתאם סטנדרטי
properties](object#correlation), השיטה מקבלת את הדברים הבאים
פרמטרים.

|פרמטר|[סוג](/manual/api/reference_commentary#data_types)|תיאור|
|--|--|------|
|filter|object|Correlation [filter](/manual/api/reference/correlation/object#correlation_filter) אובייקט להחלפת המסנן הנוכחי.|
|operations|מערך|מתאם [פעולות](/manual/api/reference/correlation/object#correlation_operation) להחלפת פעולות קיימות.|

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

[comment]: # ({13e1dc13-13e1dc13})
### החזר ערכים

`(אובייקט)` מחזירה אובייקט המכיל את המזהים של המעודכן
מתאמים תחת המאפיין `correlationids`.

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

[comment]: # ({b41637d2-b41637d2})
### דוגמאות

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

[comment]: # ({84b38e7f-67bb2dfb})
#### השבת מתאם

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "correlation.update",
     "params": {
         "correlationid": "1",
         "status": "1"
     },
     "auth": "343baad4f88b4106b9b5961e77437688",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "Correlationids": [
             "1"
         ]
     },
     "מזהה": 1
}
```

[comment]: # ({/84b38e7f-67bb2dfb})

[comment]: # ({8611676c-d6ef1778})
#### החלף תנאים, אך שמור על שיטת ההערכה

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "correlation.update",
     "params": {
         "correlationid": "1",
         "מסנן": {
             "תנאים": [
                 {
                     "סוג": 3,
                     "oldtag": "שגיאה",
                     "newtag": "בסדר"
                 }
             ]
         }
     },
     "auth": "343baad4f88b4106b9b5961e77437688",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "Correlationids": [
             "1"
         ]
     },
     "מזהה": 1
}
```

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

[comment]: # ({e7d15410-e7d15410})
### מידע נוסף

-   [מסנן יחס](object#correlation_filter)
-   [פעילות יחס](object#correlation_operation)

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

[comment]: # ({40fa665f-40fa665f})
### מקור

CCorrelation::update()‎ בתוך
*ui/include/classes/api/services/CCorrelation.php*.

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