GET api/ActivityTypes?includeInactive={includeInactive}

Get all activity types

Request Information

URI Parameters

NameDescriptionTypeAdditional information
includeInactive

Controls whether or not to include activity types marked as inactive in the database.

boolean

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ActivityType
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Description

string

None.

IsActive

boolean

None.

IsCustom

boolean

None.

ActivityTypeGuid

globally unique identifier

None.

Image

string

None.

HistoryTypes

Collection of HistoryType

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "IsActive": true,
    "IsCustom": true,
    "ActivityTypeGuid": "71145b1d-0cd2-4d38-88dd-6a964eb2a5ce",
    "Image": "sample string 7",
    "HistoryTypes": [
      {
        "Name": "sample string 1",
        "HistoryTypeId": 2,
        "Description": "sample string 3",
        "ActivityTypeID": "sample string 4",
        "ActivityTypeName": "sample string 5",
        "IsActive": true,
        "IsCustom": true,
        "IsDefault": true,
        "IsUserRecordable": true
      },
      {
        "Name": "sample string 1",
        "HistoryTypeId": 2,
        "Description": "sample string 3",
        "ActivityTypeID": "sample string 4",
        "ActivityTypeName": "sample string 5",
        "IsActive": true,
        "IsCustom": true,
        "IsDefault": true,
        "IsUserRecordable": true
      }
    ]
  },
  {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "IsActive": true,
    "IsCustom": true,
    "ActivityTypeGuid": "71145b1d-0cd2-4d38-88dd-6a964eb2a5ce",
    "Image": "sample string 7",
    "HistoryTypes": [
      {
        "Name": "sample string 1",
        "HistoryTypeId": 2,
        "Description": "sample string 3",
        "ActivityTypeID": "sample string 4",
        "ActivityTypeName": "sample string 5",
        "IsActive": true,
        "IsCustom": true,
        "IsDefault": true,
        "IsUserRecordable": true
      },
      {
        "Name": "sample string 1",
        "HistoryTypeId": 2,
        "Description": "sample string 3",
        "ActivityTypeID": "sample string 4",
        "ActivityTypeName": "sample string 5",
        "IsActive": true,
        "IsCustom": true,
        "IsDefault": true,
        "IsUserRecordable": true
      }
    ]
  }
]