Category lookup

An activity can have a 'Category' allocated to it. This API provides a list of valid categories. Note that the list of categories can be dependent on the activity type

Category lookup

Parameter

Description

Examples

More info

API

The API area

activities.json

Action

Defines the API call

action=categories

General

Parameters described in overview

user=user&password=user

v3.3 Overview

Activity type

Specify the activity type

activitytype=MAIL

Company

Specify the company

company=1

Example request:

http://<SERVER>/jsonapi/activities.json?user=user&password=user&company=1&action=categories&activitytype=MAIL&version=3.3

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 49,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "lookupTime": "00:00:00",
      "lookupTimeDisplay": "12:00 AM",
      "variable_selected": true
    },
    {
      "lookupTime": "00:30:00",
      "lookupTimeDisplay": "12:30 AM",
      "variable_selected": false
    },
    {
      "lookupTime": "01:00:00",
      "lookupTimeDisplay": "1:00 AM",
      "variable_selected": false
    },
    {
      "lookupTime": "01:30:00",
      "lookupTimeDisplay": "1:30 AM",
      "variable_selected": false
    }
  ]
}