[comment]: # ({72ba4deb-72ba4deb})
# application.update

[comment]: # ({/72ba4deb-72ba4deb})

[comment]: # ({321b6787-fd75bfba})
### 说明

`object application.update(object/array applications)`

此方法用于更新目前的应用集。

[comment]: # ({/321b6787-fd75bfba})

[comment]: # ({2cad5f24-4276e495})
### Parameters

`(object/array)` 需要被更新的 [应用集属性](object#application)。

Applicationid属性必须在每个应用集中已定义，其他所有属性为可选项。只有传递过去的属性会被更新，其他所有属性仍然保持不变。

[comment]: # ({/2cad5f24-4276e495})

[comment]: # ({1ff1be4a-9c8c3f1e})
### 返回值

`(object)` 返回一个 applicationids 属性下已更新应用集的ID的对象。

[comment]: # ({/1ff1be4a-9c8c3f1e})

[comment]: # ({392bbd85-b41637d2})
### 范例

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

[comment]: # ({ce66887e-618c2310})
#### 更新应用集的名称。

更新应用集的名称为“Processes and performance”。

请求:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "application.update",
    "params": {
        "applicationid": "13",
        "name": "Processes and performance"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

响应:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "applicationids": [
            "13"
        ]
    },
    "id": 1
}
```

[comment]: # ({/ce66887e-618c2310})

[comment]: # ({f5115b4f-d53bc4f5})
### 来源

CApplication::update() in
*frontends/php/include/classes/api/services/CApplication.php*.

### Description

`object application.update(object/array applications)`

This method allows to update existing applications.

### Parameters

`(object/array)` [Application properties](object#application) to be
updated.

The `applicationid` property must be defined for each application, all
other properties are optional. Only the passed properties will be
updated, all others will remain unchanged.

### Return values

`(object)` Returns an object containing the IDs of the updated
applications under the `applicationids` property.

### Examples

#### Changing the name of an application

Change the name of the application to "Processes and performance".

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "application.update",
    "params": {
        "applicationid": "13",
        "name": "Processes and performance"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "applicationids": [
            "13"
        ]
    },
    "id": 1
}
```

### Source

CApplication::update() in
*frontends/php/include/classes/api/services/CApplication.php*.

[comment]: # ({/f5115b4f-d53bc4f5})
