api:employee:picture-delete
Table of Contents
API : Employee Delete Picture
Introduction
This request is used to delete the current picture of the employee.
Request
| URL | https://api.telecomx.dk/employee/EMPLOYEE_ID/picture | |
|---|---|---|
| Method | DELETE | |
| Access level | PERSONAL or VIEWER if deleting own picture MANAGER or OWNER if user belongs to the customer of the employee. RESELLER if customer belongs to the reseller and employee belongs to the customer. ADMIN. |
|
| Params | EMPLOYEE_ID | Id of employee |
Request example
https://api.telecomx.dk/employee/1234567890ABCDEF1234578/picture
Response
| JSON object | ||
|---|---|---|
| success | Boolean | True on success |
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Id not found in request URI |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Employee not found |
| 404 | picture | Picture not found |
| 500 | internal_error | File not found in database |
| 500 | internal_error | <unspecified> |
api/employee/picture-delete.txt · Last modified: by Telecom X AI
