Edit

applicationTemplate: categories

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get the list of supported categories that can appear in the categories property of an applicationTemplate. Each entry includes the underlying value used by the API and a localizable display name suitable for showing in a UI.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Not supported. Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

Additional permissions aren't required to call this API, as long as your application has a valid access token to call Microsoft Graph.

HTTP request

GET /applicationTemplates/microsoft.graph.categories

Optional query parameters

This method supports the $select, $filter, $orderby, $top, and $skip OData query parameters to help customize the response. Server-side paging isn't supported, so the response doesn't include an @odata.nextLink property. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Accept-Language Language code. Optional. Providing this header with a supported language code, such as cs or de-DE, returns the displayName values localized to that language where available. If the header isn't specified or the requested language isn't available, displayName values are returned in English.

Request body

Don't supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and an applicationTemplateCategory collection in the response body.

Examples

Example 1: Get the list of supported categories

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/applicationTemplates/microsoft.graph.categories

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.applicationTemplateCategory)",
  "value": [
    {
      "value": "contentSharing",
      "displayName": "Content Sharing"
    },
    {
      "value": "collaboration",
      "displayName": "Collaboration"
    },
    {
      "value": "health",
      "displayName": "Health"
    },
    {
      "value": "crm",
      "displayName": "CRM"
    },
    {
      "value": "productivity",
      "displayName": "Productivity"
    }
  ]
}

Example 2: Get the list of supported categories with localized display names

The following example uses the Accept-Language header to request displayName values localized to Czech.

Request

GET https://graph.microsoft.com/beta/applicationTemplates/microsoft.graph.categories
Accept-Language: cs

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.applicationTemplateCategory)",
  "value": [
    {
      "value": "contentSharing",
      "displayName": "Sdílení obsahu"
    },
    {
      "value": "collaboration",
      "displayName": "Spolupráce"
    },
    {
      "value": "health",
      "displayName": "Zdraví"
    },
    {
      "value": "crm",
      "displayName": "CRM"
    },
    {
      "value": "productivity",
      "displayName": "Produktivita"
    }
  ]
}