POST repository/applications/{applicationId}/versions

Upload application from user.

Remarks

C4M Error Code returned:

  • null

    User Application has been successfully uploaded.

  • AndroidApkNotFound

    The android application was not found on the request.

  • OperationNotSupported

    This operation isn't supported.

  • ApplicationNotFound

    The user application informed was not found on the database.

  • ExistingPackageName

    There's already a package name with the same name for another application.

  • PackageNameNotMatch

    Android application package don't match with the previously application registered.

  • InvalidApplicationVersion

    The version is lower than the current uploaded version.

  • InvalidApplicationFile

    The android application file is invalid.

HTTP Status returned.

Request Information

Parameters

NameDescriptionAdditional information
applicationId
RepositoryApplicationVersion identifier.

Define this parameter in the request URI.

Response Information

Operation Status.

Response body formats

application/json, text/json

Sample:
{
  "id": 1,
  "versionCode": 12,
  "versionName": "2.0.1.1"
}