Resources - Get employee avatar

API Url

Get the employee/user avatar. It's possible to add employee pictures in ProMark client.

GET
http://localhost:16010/ProMarkREST/rest/Resources/employees/{emp_id}/avatar

Permissions: user

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    avatarString

The employee picture as BASE64-ENCODED.

  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": {
"avatar": "data:image/jpg;base64,..."
},
"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.