Skip to content

Managing Resources

POST Client Resources Service

HTTP Method: POST

Application Resource Bundles

This method allows you to add a new entity to the Entity Set Application Resource Bundles. The uploaded logs can be viewed from SAP Cloud Platform Mobile Services Admin Cockpit.

URL: https://<mobile services host>/mobileservices/origin/{origin}/bundles/v1/admin/ApplicationResourceBundles

Request Parameters

Parameter Type Description Parameter Type
ApplicationResourceBundle Optional The new entity.
  • ApplicationId: string
  • BundleName: string
  • BundleVersion: string
  • BundleExtension: string
  • IsDefault: boolean
Origin Required Origin from where the application is created. The valid value is "SAP Cloud Platform Mobile Services". string

Response Status and Error Codes

Code Description
201 Created entity.
409 Entity already exists.
default Unexpected error.

Set Default

This method allows you to invoke the action Set Default.

URL: https://<mobile services host>/mobileservices/origin/{origin}/bundles/v1/admin/ApplicationResourceBundles(ApplicationId='{ApplicationId}',BundleName='{BundleName}',BundleVersion='{BundleVersion}')/com.sap.mobile.server.bundle.admin.v1.SetDefault

Request Parameters

Parameter Type Description Parameter Type
ApplicationId Required key: ApplicationId string
Origin Required Origin from where the application is created. The valid value is "SAP Cloud Platform Mobile Services".. string
BundleName Required key: BundleName string
BundleVersion Required key: BundleVersion string

Response Status and Error Codes

Code Description
200 Empty response.
404 Entity Not Found.
default Unexpected error.

PUT Client Resources Service

This method allows you to set the binary content of the application resource.

HTTP Method: PUT

URL: https://<mobile services host>/mobileservices/origin/{origin}/bundles/v1/admin/ApplicationResourceBundles(ApplicationId='{ApplicationId}',BundleName='{BundleName}',BundleVersion='{BundleVersion}')/BundleFile

Request Parameters

Parameter Type Description Parameter Type
ApplicationId Required key: ApplicationId string
Origin Required Origin from where the application is created. The valid value is "SAP Cloud Platform Mobile Services".. string
BundleName Required key: BundleName string
BundleVersion Required key: BundleVersion string
resourceBinary Optional The binary content of the application resource. binary

Response Status and Error Codes

Code Description
204 Set the binary content of the application resource successfully.
404 Entity Not Found.
default Unexpected error.

DELETE Client Resources Service

This method allows you to delete an entity from the Application Resource Bundles by using the key.

HTTP Method: DELETE

URL: https://<mobile services host>/mobileservices/origin/{origin}/bundles/v1/admin/ApplicationResourceBundles(ApplicationId='{ApplicationId}',BundleName='{BundleName}',BundleVersion='{BundleVersion}')

Request Parameters

Parameter Type Description Parameter Type
ApplicationId Required key: ApplicationId string
Origin Required Origin from where the application is created. The valid value is "SAP Cloud Platform Mobile Services".. string
BundleName Required key: BundleName string
BundleVersion Required key: BundleVersion string

Response Status and Error Codes

Code Description
200 Entity set ApplicationResourceBundles.
404 Entity Not Found.
default Unexpected error.

Last update: August 12, 2020