Branding API
Base URL: https://api.asgardeo.io/t/<ROOT_ORGANIZATION_NAME>/o/api/server/v1
The Branding Preferences API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{root-organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{root-organization-name}/oauth2/authorize
Branding Preference
Update branding preferences of an organization.
PUT /branding-preference
This API provides the capability to update the branding preference of an organization.
Scope(Permission) required: internal_org_branding_preference_update
Request body (required): application/json
This represents the branding preferences to be updated.
Schema: BrandingPreferenceModel
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
preference | object | Yes | This is the JSON structured branding preference |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully updated | BrandingPreferenceModel |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Add branding preferences for a tenant.
POST /branding-preference
This API provides the capability to add a custom branding preference for an organization for the first time insted of the inherited branding from the root organization.
Currently this API provides the capability to only configure organization wise branding preference for 'en-US' locale.
Scope(Permission) required: internal_org_branding_preference_update
Request body (required): application/json
This represents the branding preferences to be added.
Schema: BrandingPreferenceModel
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
preference | object | Yes | This is the JSON structured branding preference |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successfully created. | BrandingPreferenceModel |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
409 | Conflict. | Error |
500 | Internal server error. | Error |
501 | Not Implemented. | Error |
Deletes branding preferences of a tenant.
DEL /branding-preference
This API provides the capability to delete the branding preferences of an orgnization.
Scope(Permission) required: internal_org_branding_preference_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | string | Type to filter the retrieval of customizations. Allowed values: | |
name | query | string | Tenant/Application name to filter the retrieval of customizations. | |
locale | query | string | Locale to filter the retrieval of customizations. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully deleted. | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Resolve branding preference of an organization.
GET /branding-preference/resolve
This API provides the capability to retrieve the branding preference of an organization.
If there is no branding preference available for the requested locale, API will check for the default locale('en-US') and return it.
Scope(Permission) required: None
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | string | Type to filter the retrieval of customizations. Allowed values: | |
name | query | string | Tenant/Application name to filter the retrieval of customizations. | |
locale | query | string | Locale to filter the retrieval of customizations. | |
restrictToPublished | query | boolean | Specifies whether to limit resolving to published branding preferences. If set to true, branding preference will be resolved only using published branding preferences. If set to false, branding preference will be resolved using both published and unpublished branding preferences. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | BrandingPreferenceModel |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Custom Text
Update custom text of a tenant.
PUT /branding-preference/text
This API provides the capability to update the custom texts for the specified screen & locale.
Scope(Permission) required: internal_org_branding_preference_update
Request body (required): application/json
This represents the custom text content to be updated for the specified screen & locale.
Schema: CustomTextModel
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
screen | string | Yes | |
preference | object | Yes | This is the JSON structured branding preference |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully updated | CustomTextModel |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Add custom text for a tenant.
POST /branding-preference/text
This API provides the capability to add custom texts for the specified screen & locale.
Scope(Permission) required: internal_org_branding_preference_update
Request body (required): application/json
This represents the custom text to be added.
Schema: CustomTextModel
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
screen | string | Yes | |
preference | object | Yes | This is the JSON structured branding preference |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successfully created. | CustomTextModel |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
409 | Conflict. | Error |
500 | Internal server error. | Error |
501 | Not Implemented. | Error |
Deletes custom text.
DEL /branding-preference/text
This API provides the capability to delete the custom texts for the specified screen & locale of an organization.
If no query parameter was specified in the delete request, all the custom texts configured in the organization will be deleted.
Scope(Permission) required: internal_org_branding_preference_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | string | Type to filter the retrieval of customizations. Allowed values: | |
name | query | string | Tenant/Application name to filter the retrieval of customizations. | |
locale | query | string | Locale to filter the retrieval of customizations. | |
screen | query | string | Screen to filter the retrieval of customizations. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully deleted. | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Resolve custom text of an organization.
GET /branding-preference/text/resolve
This API provides the capability to retrieve the custom text configurations of an organization/specific application.
If there is no custom text available for the requested locale, API will check for the default locale('en-US') and return it.
If there is no custom text available for the requested organization, API will check for the parent organization's custom text configurations and return it.
Scope(Permission) required: None
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | string | Type to filter the retrieval of customizations. Allowed values: | |
name | query | string | Tenant/Application name to filter the retrieval of customizations. | |
locale | query | string | Locale to filter the retrieval of customizations. | |
screen | query | string | Screen to filter the retrieval of customizations. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | CustomTextModel |
400 | Invalid input in the request. | Error |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Schemas
BrandingPreferenceModel
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
preference | object | Yes | This is the JSON structured branding preference |
CustomTextModel
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
name | string | ||
locale | string | Default: | |
screen | string | Yes | |
preference | object | Yes | This is the JSON structured branding preference |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?