

# CreateBrand


Creates an Quick Sight brand.

## Request Syntax


```
POST /accounts/AwsAccountId/brands/BrandId HTTP/1.1
Content-type: application/json

{
   "BrandDefinition": { 
      "ApplicationTheme": { 
         "BrandColorPalette": { 
            "Accent": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Danger": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Dimension": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Info": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Measure": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Primary": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Secondary": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Success": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Warning": { 
               "Background": "string",
               "Foreground": "string"
            }
         },
         "BrandElementStyle": { 
            "NavbarStyle": { 
               "ContextualNavbar": { 
                  "Background": "string",
                  "Foreground": "string"
               },
               "GlobalNavbar": { 
                  "Background": "string",
                  "Foreground": "string"
               }
            }
         },
         "ContextualAccentPalette": { 
            "Automation": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Connection": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Insight": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Visualization": { 
               "Background": "string",
               "Foreground": "string"
            }
         }
      },
      "BrandName": "string",
      "Description": "string",
      "LogoConfiguration": { 
         "AltText": "string",
         "LogoSet": { 
            "Favicon": { 
               "Original": { 
                  "Source": { ... }
               }
            },
            "Primary": { 
               "Original": { 
                  "Source": { ... }
               }
            }
         }
      }
   },
   "Tags": [ 
      { 
         "Key": "string",
         "Value": "string"
      }
   ]
}
```

## URI Request Parameters


The request uses the following URI parameters.

 ** [AwsAccountId](#API_CreateBrand_RequestSyntax) **   <a name="QS-CreateBrand-request-uri-AwsAccountId"></a>
The ID of the AWS account that owns the brand.  
Length Constraints: Fixed length of 12.  
Pattern: `^[0-9]{12}$`   
Required: Yes

 ** [BrandId](#API_CreateBrand_RequestSyntax) **   <a name="QS-CreateBrand-request-uri-BrandId"></a>
The ID of the Quick brand.  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Pattern: `[\w\-]+`   
Required: Yes

## Request Body


The request accepts the following data in JSON format.

 ** [BrandDefinition](#API_CreateBrand_RequestSyntax) **   <a name="QS-CreateBrand-request-BrandDefinition"></a>
The definition of the brand.  
Type: [BrandDefinition](API_BrandDefinition.md) object  
Required: No

 ** [Tags](#API_CreateBrand_RequestSyntax) **   <a name="QS-CreateBrand-request-Tags"></a>
A map of the key-value pairs that are assigned to the brand.  
Type: Array of [Tag](API_Tag.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 200 items.  
Required: No

## Response Syntax


```
HTTP/1.1 200
Content-type: application/json

{
   "BrandDefinition": { 
      "ApplicationTheme": { 
         "BrandColorPalette": { 
            "Accent": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Danger": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Dimension": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Info": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Measure": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Primary": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Secondary": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Success": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Warning": { 
               "Background": "string",
               "Foreground": "string"
            }
         },
         "BrandElementStyle": { 
            "NavbarStyle": { 
               "ContextualNavbar": { 
                  "Background": "string",
                  "Foreground": "string"
               },
               "GlobalNavbar": { 
                  "Background": "string",
                  "Foreground": "string"
               }
            }
         },
         "ContextualAccentPalette": { 
            "Automation": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Connection": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Insight": { 
               "Background": "string",
               "Foreground": "string"
            },
            "Visualization": { 
               "Background": "string",
               "Foreground": "string"
            }
         }
      },
      "BrandName": "string",
      "Description": "string",
      "LogoConfiguration": { 
         "AltText": "string",
         "LogoSet": { 
            "Favicon": { 
               "Original": { 
                  "Source": { ... }
               }
            },
            "Primary": { 
               "Original": { 
                  "Source": { ... }
               }
            }
         }
      }
   },
   "BrandDetail": { 
      "Arn": "string",
      "BrandId": "string",
      "BrandStatus": "string",
      "CreatedTime": number,
      "Errors": [ "string" ],
      "LastUpdatedTime": number,
      "Logo": { 
         "AltText": "string",
         "LogoSet": { 
            "Favicon": { 
               "Height32": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               },
               "Height64": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               },
               "Original": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               }
            },
            "Primary": { 
               "Height32": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               },
               "Height64": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               },
               "Original": { 
                  "GeneratedImageUrl": "string",
                  "Source": { ... }
               }
            }
         }
      },
      "VersionId": "string",
      "VersionStatus": "string"
   },
   "RequestId": "string"
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [BrandDefinition](#API_CreateBrand_ResponseSyntax) **   <a name="QS-CreateBrand-response-BrandDefinition"></a>
The definition of the brand.  
Type: [BrandDefinition](API_BrandDefinition.md) object

 ** [BrandDetail](#API_CreateBrand_ResponseSyntax) **   <a name="QS-CreateBrand-response-BrandDetail"></a>
The details of the brand.  
Type: [BrandDetail](API_BrandDetail.md) object

 ** [RequestId](#API_CreateBrand_ResponseSyntax) **   <a name="QS-CreateBrand-response-RequestId"></a>
The AWS request ID for this operation.  
Type: String

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.    
 ** RequestId **   
The AWS request ID for this request.
HTTP Status Code: 401

 ** ConflictException **   
Updating or deleting a resource can cause an inconsistent state.    
 ** RequestId **   
The AWS request ID for this request.
HTTP Status Code: 409

 ** InternalServerException **   
An internal service exception.  
HTTP Status Code: 500

 ** InvalidRequestException **   
You don't have this feature activated for your account. To fix this issue, contact AWS support.    
 ** RequestId **   
The AWS request ID for this request.
HTTP Status Code: 400

 ** LimitExceededException **   
A limit is exceeded.    
 ** RequestId **   
The AWS request ID for this request.  
 ** ResourceType **   
Limit exceeded.
HTTP Status Code: 409

 ** ThrottlingException **   
Access is throttled.    
 ** RequestId **   
The AWS request ID for this request.
HTTP Status Code: 429

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/quicksight-2018-04-01/CreateBrand) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/CreateBrand) 