Skip to main content

Branding management API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/o/api/server/v1

The Branding Preferences API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/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
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

preferenceobjectYes

This is the JSON structured branding preference

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

preferenceobjectYes

This is the JSON structured branding preference

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
typequerystring

Type to filter the retrieval of customizations.

Allowed values: ORG, APP, CUSTOM

namequerystring

Tenant/Application name to filter the retrieval of customizations.

localequerystring

Locale to filter the retrieval of customizations.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
typequerystring

Type to filter the retrieval of customizations.

Allowed values: ORG, APP, CUSTOM

namequerystring

Tenant/Application name to filter the retrieval of customizations.

localequerystring

Locale to filter the retrieval of customizations.

restrictToPublishedqueryboolean

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: false

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

screenstringYes
preferenceobjectYes

This is the JSON structured branding preference

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

screenstringYes
preferenceobjectYes

This is the JSON structured branding preference

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
typequerystring

Type to filter the retrieval of customizations.

Allowed values: ORG, APP, CUSTOM

namequerystring

Tenant/Application name to filter the retrieval of customizations.

localequerystring

Locale to filter the retrieval of customizations.

screenquerystring

Screen to filter the retrieval of customizations.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
typequerystring

Type to filter the retrieval of customizations.

Allowed values: ORG, APP, CUSTOM

namequerystring

Tenant/Application name to filter the retrieval of customizations.

localequerystring

Locale to filter the retrieval of customizations.

screenquerystring

Screen to filter the retrieval of customizations.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

preferenceobjectYes

This is the JSON structured branding preference

CustomTextModel​

Type: object

5 properties
NameTypeRequiredDescription
typestringYes

Allowed values: ORG, APP, CUSTOM

namestring
localestring

Default: en-US

screenstringYes
preferenceobjectYes

This is the JSON structured branding preference

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?