Light
Light•2mo ago

Set Login Font and Icon Through API

Hi! I was wondering if it's possible to set a organization's login font and icon through the API. Either by providing a link to the resource or something similar. I did find ways to set the fontColor, etc. through the v1 API and retrieve the branding settings through the v2 API, but not how to set the font or icon. Since we create organizations on the fly through the API this would be super useful for us. I saw that it's somewhat possible through the terraform provider by providing a font- and iconPath, but that's far from ideal for our use case. Thank you!
5 Replies
Rajat
Rajat•2mo ago
hi @Light checkout teh asssets api https://zitadel.com/docs/apis/assets
Light
LightOP•2mo ago
@Rajat Nice, thank you! It's a bit sparsely documented though 😅 Any refernces or examples for what to send in the body and for auth?
Rajat
Rajat•2mo ago
hey @Light I knew this will come up, I will look up
Light
LightOP•2mo ago
Thanks! @Rajat Any update regarding the documentation? You can also point me to some code files where I can take a look at the routes if you guys are strapped for resouces right now.
Rajat
Rajat•2mo ago
hey @Light I will send you the curl requests by Monday next week, but from my teammate, this is what he said I can see that all those endpoints simply accept file payloads to update those assets. https://github.com/zitadel/zitadel/blob/af66c9844a550bba2a2c002cd5e72b263acfe96e/console/src/app/services/asset.service.ts#L21 Here is an example of a call to update an avatar. https://github.com/zitadel/zitadel/blob/main/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.ts#L28 maybe you can play around and see if you can curate a curl call by then 🙂

Did you find this page helpful?