Activitytypes
Parameter | Type | Description |
---|---|---|
[IN] Parameters described in Overview | ||
Company | String | [IN] The users default company number for the companies list |
version | Integer | [IN] version number identifier |
Response | XML/JSON | [OUT] An XML tree / JSON string containing activitytypes the user has access to |
Description
Activity Types has its own API call and is called via activitytypes rather than the timesheets API call.
Calling the activitytypes API retrieves a list of activity type codes and associated descriptions.
Return Values
Response – List of activity types.
The structure of the response is:
<activitytypes morepages="False" totalpages="1" totalrows="1">
<activity activitytypes_uuid="02D9533B13E011E39F6400155D003416">
<activitytypes_activitycode>1/ACT2</activitytypes_activitycode>
<activitytypes_activitydesc>activity type 2</activitytypes_activitydesc>
</activity>
</activitytypes>
{
"errormessage": "",
"responsecode": 1,
"pagerows": 0,
"totalrows": 1,
"responsestatus": "OK",
"success": true,
"responsemessage": "",
"errorcode": 0,
"totalpages": 1,
"pagenumber": 1,
"data": [
{
"activitytypes_uuid": "02D9533B13E011E39F6400155D003416",
"activitytypes_activitydesc": "activity type 2",
"activitytypes_activitycode": "1/ACT2"
}
]
}