User Tools

Site Tools


api:employee:picture-delete

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 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
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: 2015/08/27 12:15 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki