All Categories API

Returns a list of all categories, not just main categories .

Location

https://calendar.byu.edu/api/AllCategories

Parameters

No parameters

Return Values

Name
Description
CategoryId

Name

ParentCategoryId
Not all categories have a parent category. Internal categories will usually have a parent category. If a category has no parent category, this value will not be returned at all.
FullUrl

CategoryTypeId

CategoryType
Three category types: main categories, tags, and internal categories (e.g., departments, groups). Internal categories are used when a department wants to contribute to its group of events.

Return Format

XML is returned by default, but the format can be specified explicitly in the URL.

XML Example

https://calendar.byu.edu/api/AllCategories.xml

All three categories

An internal category with a parent category

JSON Example

https://calendar.byu.edu/api/AllCategories.json

Example with different category types and a parent category

Changes

This API is similar to Categories API. It is a new API that includes values not included in Categories API. This API exists to get all categories, because Categories API previously returned all categories, but now it returns only main categories.

New Values

FullUrl