System - Get web-part properties

API Url

Used for loading properties of a web-part

GET
http://localhost:16010/ProMarkREST/rest/System/webparts/{id}/properties

Permissions: user

Path parameters

FieldTypeDescription
idNumber

Unique identifier of the web-part instance.

Query parameters

FieldTypeDescription
leveloptionalNumber

The level from where the properties are loaded.(5 = System, 10 = Employee category, 15 = User profile)

levelIdoptionalString

The category or user profile. (Only for level > 5)

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    propertiesObject[]

Collection of web-part properties.

      idString

Property unique identifier.

      levelBoolean

Level of property.(0 = ProMark, 5 = System, 10 = Employee category, 15 = User profile, 20 = Portal User, 25 = Current)

      lockedBoolean

true = Web-part property is read-only.

      nameString

Name of property.

      typeNumber

Type of property.

      valueString

Value of property.

      visibleBoolean

true = Web-part property is visible to the user.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"properties": [
{
"id": "ActDeptDes",
"name": "Show actual department description",
"value": "FALSE",
"type": 2,
"visible": true,
"locked": false,
"level": 5
},
{
"id": "ActDeptId",
"name": "Show act department ID",
"value": "FALSE",
"type": 2,
"visible": true,
"locked": false,
"level": 5
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.