Skip to content

Latest commit

 

History

History
137 lines (100 loc) · 5.03 KB

File metadata and controls

137 lines (100 loc) · 5.03 KB
title Create organizationalBrandingTheme
description Create a new organizationalBrandingTheme object.
author AlexanderMars
ms.date 11/04/2025
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType

Create organizationalBrandingTheme

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Create a new organizationalBrandingTheme object.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

[!INCLUDE rbac-org-branding-apis-write]

HTTP request

POST /organization/{organizationId}/branding/themes

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the organizationalBrandingTheme object.

You can specify the following properties when creating an organizationalBrandingTheme.

Property Type Description
name String The name of the branding theme. Required.
isDefaultTheme Boolean Indicates whether the theme is set as the default branding theme for the entire tenant and includes all applications within the tenant. When set to true, this theme is automatically applied to any application that does not have a specific theme assigned. This property is useful for enforcing consistent branding across multiple apps without configuring each one individually. Optional.

Response

If successful, this method returns a 201 Created response code and an organizationalBrandingTheme object in the response body.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/organization/aaaabbbb-0000-cccc-1111-dddd2222eeee/branding/themes
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.organizationalBrandingTheme",
  "name": "ContosoTheme",
  "isDefaultTheme": true
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

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

HTTP/1.1 201 Created
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.organizationalBrandingTheme",
  "id": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
  "name": "ContosoTheme",
  "isDefaultTheme": true
}