get_app_settings

To get the settings of an application stored in a resource, use the resource/get_app_settings method. To save the settings, use the resource/update_app_settings method.

Endpoint

Copied!
svc=resource/get_app_settings&params={
  "resourceId": <long>,
  "app": "<text>"
}

Parameters

The request must contain the following parameters:

Parameter Description
resourceId Resource ID.
app Application name. To get the settings of all the applications stored in the resource, specify *.

Response

If the request is completed successfully, the response contains the settings of the application in the same format in which they were saved. For example:

Copied!
{
  "key1": "value1",
  "key2": [1, 2],
  "key3": {
    "key3_1": "value3_1"
  }
}

If the resource has no settings for the application, or app is empty, the response is an empty object: {}.

If app is *, the response contains the settings of all the applications, where the keys are application names:

Copied!
{
  "<app name>": {...},
  "<app name>": {...}
}

If the resource has no settings of any application, the request with * returns {"error":0}.

If the request fails, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters.
7 The resource doesn’t exist, or the user has no View detailed object properties access right to it.

If you find a mistake in the text, please select it and press Ctrl+Enter.