(branding)
- create - Create brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
- upsert - Create or replace brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
- get - Get brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.read
scope.
- update - Updates the brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
Create brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.branding.create(account_id="7a621cf0-21cd-49cf-8540-3315211a509a", colors=components.BrandColors(
dark=components.BrandColor(
accent="#111111",
),
light=components.BrandColor(
accent="#111111",
),
))
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
account_id |
str | ✔️ | N/A |
colors |
components.BrandColors | ✔️ | Brand colors for light and dark modes. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateBrandResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.GenericError | 400, 409 | application/json |
errors.BrandValidationError | 422 | application/json |
errors.APIError | 4XX, 5XX | */* |
Create or replace brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.branding.upsert(account_id="87673c22-1b80-4b69-b5bb-e92af8dcce02", colors=components.BrandColors(
dark=components.BrandColor(
accent="#111111",
),
light=components.BrandColor(
accent="#111111",
),
))
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
account_id |
str | ✔️ | N/A |
colors |
components.BrandColors | ✔️ | Brand colors for light and dark modes. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.UpsertBrandResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.GenericError | 400, 409 | application/json |
errors.BrandValidationError | 422 | application/json |
errors.APIError | 4XX, 5XX | */* |
Get brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.read
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.branding.get(account_id="b888f774-3e7c-4135-a18c-6b985523c4bc")
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
account_id |
str | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 4XX, 5XX | */* |
Updates the brand properties for the specified account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/branding.write
scope.
from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.branding.update(account_id="d95fa7f0-e743-42ce-b47c-b60cc78135dd")
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
account_id |
str | ✔️ | N/A |
colors |
Optional[components.UpdateColors] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.UpdateBrandResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.GenericError | 400, 409 | application/json |
errors.BrandValidationError | 422 | application/json |
errors.APIError | 4XX, 5XX | */* |