Skip to main content

brands

Creates, updates, deletes, gets or lists a brands resource.

Overview

Namebrands
TypeResource
Idokta.brands.brands

Fields

The following fields are returned by SELECT queries:

Successfully returned the list of brands

NameDatatypeDescription
idstringThe Brand ID
namestringThe name of the Brand
agreeToCustomPrivacyPolicybooleanConsent for updating the custom privacy URL. Not required when resetting the URL.
customPrivacyPolicyUrlstringCustom privacy policy URL
defaultAppobject
emailDomainIdstringThe ID of the email domain
isDefaultbooleanIf true, the Brand is used for the Okta subdomain
localestringThe language specified as an IETF BCP 47 language tag
removePoweredByOktabooleanRemoves "Powered by Okta" from the sign-in page in redirect authentication deployments, and "© [current year] Okta, Inc." from the Okta End-User Dashboard

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_brandsselectsubdomainexpand, after, limit, qLists all the brands in your org
get_brandselectsubdomainexpandRetrieves a brand by brandId
create_brandinsertsubdomain, data__nameCreates a new brand in your org
replace_brandreplacesubdomain, data__nameReplaces a brand by brandId

Passing an invalid brandId returns a 404 Not Found status code with the error code E0000007.

Not providing agreeToCustomPrivacyPolicy with customPrivacyPolicyUrl returns a 400 Bad Request status code with the error code E0000001.

delete_branddeletesubdomainDeletes a brand by brandId

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)
afterstringThe cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination.
expandarraySpecifies additional metadata to be included in the response
limitintegerA limit on the number of objects to return
qstringSearches the records for matching value

SELECT examples

Lists all the brands in your org

SELECT
id,
name,
agreeToCustomPrivacyPolicy,
customPrivacyPolicyUrl,
defaultApp,
emailDomainId,
isDefault,
locale,
removePoweredByOkta
FROM okta.brands.brands
WHERE subdomain = '{{ subdomain }}' -- required
AND expand = '{{ expand }}'
AND after = '{{ after }}'
AND limit = '{{ limit }}'
AND q = '{{ q }}'
;

INSERT examples

Creates a new brand in your org

INSERT INTO okta.brands.brands (
data__name,
subdomain
)
SELECT
'{{ name }}' /* required */,
'{{ subdomain }}'
RETURNING
id,
name,
agreeToCustomPrivacyPolicy,
customPrivacyPolicyUrl,
defaultApp,
emailDomainId,
isDefault,
locale,
removePoweredByOkta
;

REPLACE examples

Replaces a brand by brandId

Passing an invalid brandId returns a 404 Not Found status code with the error code E0000007.

Not providing agreeToCustomPrivacyPolicy with customPrivacyPolicyUrl returns a 400 Bad Request status code with the error code E0000001.

REPLACE okta.brands.brands
SET
data__agreeToCustomPrivacyPolicy = {{ agreeToCustomPrivacyPolicy }},
data__customPrivacyPolicyUrl = '{{ customPrivacyPolicyUrl }}',
data__defaultApp = '{{ defaultApp }}',
data__emailDomainId = '{{ emailDomainId }}',
data__locale = '{{ locale }}',
data__name = '{{ name }}',
data__removePoweredByOkta = {{ removePoweredByOkta }}
WHERE
subdomain = '{{ subdomain }}' --required
AND data__name = '{{ name }}' --required
RETURNING
id,
name,
agreeToCustomPrivacyPolicy,
customPrivacyPolicyUrl,
defaultApp,
emailDomainId,
isDefault,
locale,
removePoweredByOkta
;

DELETE examples

Deletes a brand by brandId

DELETE FROM okta.brands.brands
WHERE subdomain = '{{ subdomain }}' --required
;