{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/timesheets/data/admintypes.json","auth":"required","examples":{"codes":[{"language":"javascript","code":"$.ajax({\n\t\ttype: \"GET\",\n  \turl: \"/api/v1/timesheets/data/admintypes.json\", \n  \tcontentType: 'application/json',\n  \tdataType: \"json\", \n  \tsuccess: worked, \n  \theaders: { apiKey: apiKey }\n });","name":""}]},"method":"get","params":[],"results":{"codes":[{"language":"json","code":"{\n  \"status\": \"Okay\",\n  \"AdminTypes\": [\n    {\n      \"id\": 12,\n      \"name\": \"Annual Leave\"\n    },\n    {\n      \"id\": 13,\n      \"name\": \"Sick Leave\"\n    },\n    {\n      \"id\": 14,\n      \"name\": \"Meetings\"\n    },\n    {\n      \"id\": 15,\n      \"name\": \"Admin\"\n    },\n    {\n      \"id\": 16,\n      \"name\": \"Misc\"\n    }\n  ]\n}","name":"","status":200}]},"settings":""},"next":{"description":"","pages":[]},"title":"Get Timesheet Admin Types","type":"endpoint","slug":"get-timesheet-admin-types","excerpt":"In ProjectManager.com you can specify a number of timesheet admin types.\n\nUse this API to fetch a list of all possible values for your timesheet admin types.\n\nYou can then use those values when you're creating timesheets using the Create Timesheet API or to retrieve all timesheets for a given admin type using the get timesheets by admin type API.","body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"Id\",\n    \"0-1\": \"The admin type id\",\n    \"1-0\": \"Name\",\n    \"1-1\": \"The admin type description\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]","updates":[],"order":999,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"575f7f95c0bca70e00afbe42","createdAt":"2016-06-14T03:52:53.676Z","githubsync":"","parentDoc":null,"project":"5548466bd2c8410d006c2143","user":"557e3d82eb75d80d00af3dd2","__v":2,"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"_id":"5548466bd2c8410d006c2146","createdAt":"2015-05-05T04:26:19.796Z","project":"5548466bd2c8410d006c2143","__v":8,"releaseDate":"2015-05-05T04:26:19.796Z"},"category":{"sync":{"isSync":false,"url":""},"pages":["55651a9c03b6710d00916948","55651b27b893840d00444737","55651cb603b6710d0091694c","55651d35b893840d00444740","55652662eb1615230053fd54","556526c1b60f251900703445","556527157a60a419000627f7"],"title":"Timesheets","slug":"timesheets","order":4,"from_sync":false,"reference":false,"_id":"55651a0c65a1130d00400c2b","project":"5548466bd2c8410d006c2143","version":"5548466bd2c8410d006c2146","__v":7,"createdAt":"2015-05-27T01:12:44.934Z"}}

getGet Timesheet Admin Types

In ProjectManager.com you can specify a number of timesheet admin types. Use this API to fetch a list of all possible values for your timesheet admin types. You can then use those values when you're creating timesheets using the Create Timesheet API or to retrieve all timesheets for a given admin type using the get timesheets by admin type API.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

[block:parameters] { "data": { "h-0": "Property", "h-1": "Description", "0-0": "Id", "0-1": "The admin type id", "1-0": "Name", "1-1": "The admin type description" }, "cols": 2, "rows": 2 } [/block]