updateApplication (PUT)

Updates the specific application metadata based on package name.

Method

PUT

Path

/services/service/desktop/application/{pkg}

Path Parameters

pkg
Name of the package, including OS name.
Example: com.ibm.mytest1@Android

Example

https://www.example.com/appcenterconsole/services/service/desktop/application/com.ibm.mytest1@Android

Consumes

aaplication/json

Produces

application/json

Payload

JSON Example

    {
        "os":"Android",
        "label":"HelloWorld",
        "pkg":"com.ibm.mytest1",
        "versionName":"1.0",
        "version":"1"
    }

Response

Status: 200 OK

JSON Example


[
    {
        "creation_time": 1639554173372,
        "latest_version_link": "https://www.example.com/appcenterconsole/services/service/directory/com.ibm.mytest1@Android",
        "iconSrc": "",
        "link": "https://www.example.com/appcenterconsole/services/service/directory/Android/com.ibm.mytest1/1",
        "description": "",
        "versionName": "1.0",
        "mandatory": "N",
        "apns_gateway": "",
        "pkg": "com.ibm.mytest1",
    .......
    .......
    "version": "1",
        "url": [
            {
                "filename": "HelloWorld9universal.apk",
                "size": 4835,
                "rel": "apk",
                "link": "https://www.example.com/appcenterconsole/services/service/application/abc/123",
                "id": "123",
                "derived": "N",
                "value": "application/abc/123",
                "cid": "441"
            }
        ],
    ........
    ........
}
]

Errors

400
The payload is invalid.
404
message": "FWLAC0207W: Application \"com.ibm.mytest1@Android\", version \"1\" does not exist or is inactive.
500
An internal error occurred.