Skip to content

Managing Logs

GET Client Log Upload Service

HTTP Method: GET

Service Document for GET Client Log Upload Service

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

Response Status and Error Codes for Service Document

Code Description
200 Service document.
500 Unexpected error.

Metadata Document for GET Client Log Upload Service

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/$metadata

Response Status and Error Codes for Metadata Document

Code Description
200 Metadata document.
500 Unexpected error.

Entity Set Application Policy

This method allows you to get the entities from the Entity Set Application Policy.

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/ApplicationPolicySet

Response Status and Error Codes

Code Description
200 Entity set ApplicationPolicy
404 Not found.
500 Unexpected error.

Application Policy by Key

This method allows you to get the entity from the Application Policy by key, and it returns the entity with the key from the Application Policy.

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/ApplicationPolicySet('{applicationId}')

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 Mobile Services" string

Response Status and Error Codes for Entity Set Application Policy

Code Description
200 Entity set ApplicationPolicy.
404 Not found.
500 Unexpected error.

POST Client Log Upload Service

This method allows you to post the new entity to the Entity Set Application Policy.

HTTP Method: POST

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/ApplicationPolicySet

Parameter Type Description Parameter Type
ApplicationPolicy Required The new entity
  • ApplicationId: string
  • LogUploadEnabled: boolean
Origin Required Origin from where the application is created. The valid value is "SAP Mobile Services" string

Response Status and Error Codes for POST Client Log Upload Service

Code Description
201 Created entity.
409 Client log upload policy already exists.
500 Unexpected error.

PATCH Client Log Upload Service

This method allows you to update the entity in the Entity Set Application Policy.

HTTP Method: PATCH

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/ApplicationPolicySet('{applicationId}')

Request Parameters:

Parameter Type Description Parameter Type
applicationId Required key: applicationId string
ApplicationPolicy Required The entity to patch. ApplicationId: string
LogUploadEnabled: boolean
Origin Required Origin from where the application is created. The valid value is "SAP Mobile Services" string

Response Status and Error Codes for PATCH Client Log Upload Service

Code Description
204 Empty response.
404 Not Found.
500 Unexpected error.

DELETE Client Log Upload Service

This method allows you to delete an entity in the Entity Set Application Policy.

HTTP Method: DELETE

URL: https://<mobile services host>/mobileservices/origin/{origin}/clientlogs/v1/admin/ApplicationPolicySet('{applicationId}')

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 Mobile Services" string

Response Status and Error Codes for DELETE Client Log Upload Service

Code Description
204 Empty response.
404 Not found.
500 Unexpected error.

Last update: April 14, 2021