PUT repository/applications/{applicationId}
Registers an RepositoryApplicationVersion in the consumer's Environment.
Remarks
C4M Error Code returned:
null User Application has been successfully updated.
ApplicationNotFound The user application informed was not found on the database.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| applicationId | RepositoryApplicationVersion identifier. |
Define this parameter in the request URI. |
| applicationDto | Application data as ApplicationUpdateRequestDto. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"alias": "My Android app"
}
Response Information
Updated ApplicationWithVersionsResponseDto.
Response body formats
application/json, text/json
Sample:
{
"versions": [
{
"id": 1,
"versionCode": 12,
"versionName": "2.0.1.1"
},
{
"id": 1,
"versionCode": 12,
"versionName": "2.0.1.1"
}
],
"alias": "My Android App",
"id": 1,
"packageName": "com.example.myandroidapp"
}
Sample:
{
"costType": 0,
"distributionChannel": 0,
"numberOfProvisionedLicenses": 1,
"numberOfPurchasedLicenses": 1,
"productId": "sample string 1",
"versions": [
{
"id": 1,
"versionCode": 12,
"versionName": "2.0.1.1"
},
{
"id": 1,
"versionCode": 12,
"versionName": "2.0.1.1"
}
],
"alias": "My Android App",
"id": 1,
"packageName": "com.example.myandroidapp"
}