{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/timecard/{shiftid}.json","auth":"required","examples":{"codes":[]},"method":"delete","params":[{"name":"parentShiftId","type":"int","default":"","desc":"Unique identifier of the parent shift (A shift with sub activities such as break start, break end etc,. is considered as a parent shift )","required":true,"in":"path","ref":"","_id":"57331610b26eb71900f89ab1"}],"results":{"codes":[{"status":200,"language":"json","code":"{ \n \"serverResponse\":{ \n \"result\":\"TimeCard Deleted Successfully\",\n \"error\":null\n }\n}","name":""}]},"settings":"559288b86bf22f170075b794"},"next":{"description":"","pages":[]},"title":"Delete","type":"endpoint","slug":"delete","excerpt":"Use this API to delete an existing shift. All the sub activities belonging to the shift will also be deleted. Once deleted, all information pertaining to this shift will be erased from the application and total working hours will be adjusted accordingly. You are allowed to delete only those shifts which you have access to. Only one shift can be deleted per API call.","body":"[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"Sample Request\",\n \"body\": \"https://api.azuga.com/azuga-ws/v1/timecard/{shiftid}.json\"\n}\n[/block]\n\n[block:callout]\n{\n \"type\": \"warning\",\n \"body\": \"This is an irreversible action. Be careful!\",\n \"title\": \"Watch Out!\"\n}\n[/block]\n##API Response explanation\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Field\",\n \"h-1\": \"Description\",\n \"0-0\": \"error\",\n \"0-1\": \"Error status\",\n \"1-0\": \"result\",\n \"1-1\": \"API message (Success/Failure)\"\n },\n \"cols\": 2,\n \"rows\": 2\n}\n[/block]","updates":[],"order":3,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57331610b26eb71900f89ab0","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["559286c7c39c4b2d00127a72","55928a98c39c4b2d00127a83","5592bd7b9a68220d00f1c3db","5593dcaf0e82e81700334e25","5594342f0c33bd0d000595a3","563081713998420d00a509e4","5630941c7581b80d00c51c86","56309f4ff1c0580d00fac666","567923b8239fac0d00c7df25","573306dea6a9c40e00e13875","577a288fd051530e00f65563","579af3982b865e17005a4357","57ee06aa1e42900e0014a374","5951f49a63f39000159e7ef1","5951f4c563f39000159e7ef2","598951542a9dfc000fcacd40","5b3375cc98cb500003e4b363","5bbcd4e29667280003084100"],"_id":"559286c6c39c4b2d00127a71","createdAt":"2015-06-30T12:08:38.768Z","project":"55926c913735880d005f7c65","releaseDate":"2015-06-30T12:08:38.768Z","__v":18,"forked_from":"559286b6c39c4b2d00127a6e"},"githubsync":"","user":"5656a3dd5656350d001d83a0","__v":0,"parentDoc":null,"project":"55926c913735880d005f7c65","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"TIMECARD","slug":"timecard","order":10,"from_sync":false,"reference":true,"_id":"573306dea6a9c40e00e13875","version":"559286c6c39c4b2d00127a71","project":"55926c913735880d005f7c65","createdAt":"2016-05-11T10:18:06.559Z","__v":0},"createdAt":"2016-05-11T11:22:56.674Z","editedParams":true,"editedParams2":true}
deleteDelete
Use this API to delete an existing shift. All the sub activities belonging to the shift will also be deleted. Once deleted, all information pertaining to this shift will be erased from the application and total working hours will be adjusted accordingly. You are allowed to delete only those shifts which you have access to. Only one shift can be deleted per API call.
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Path Params
parentShiftId:
required
integer
Unique identifier of the parent shift (A shift with sub activities such as break start, break end etc,. is considered as a parent shift )