question

BrendanHiggs-8646 avatar image
0 Votes"
BrendanHiggs-8646 asked BrendanHiggs-8646 answered

Update organizationalBrandingProperties

Attempting to update organizationalBrandingProperties via the below API

 PATCH https://graph.microsoft.com/v1.0/organization/{tenant id}/branding/bannerLogo
 Content-Type: image/jpeg
    
 <Image>

However, Receive the below error

 Code :  Request_UnsupportedQuery
 Message : Invalid Locale id value bannerLogo. It must be valid ISO-639 Locale


Only attempting to change the default branding not localized,
Have attempted to add the Content-Language header also with no luck.

Able to use below API to change any String details without issue,

 PATCH https://graph.microsoft.com/v1.0/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding
 Content-Type: application/json
    
 {
     "signInPageText":"Default",
     "usernameHintText":"DefaultHint"
 }


P.S using postman for testing

microsoft-graph-identity
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, let us look into this and get back to you,

Diana.

0 Votes 0 ·
BrendanHiggs-8646 avatar image
0 Votes"
BrendanHiggs-8646 answered

Hey Sasha,

I've test with the header "Accept-Language : default" without any luck sadly,

I've confirmed in Azure the company branding is default (as per below screenshots),

I've also attached screenshots of the settings used which is,

  PATCH https://graph.microsoft.com/v1.0/organization/{tenant id}/branding/bannerLogo
  Content-Type: image/jpeg
  Accept-Language: default
   
  <Image>


Thanks! Brendan.



100101-body.png100065-company-brnading.png100102-header.png





body.png (23.1 KiB)
header.png (55.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SashaMars avatar image
0 Votes"
SashaMars answered

Hi Brendan,

Thanks for reaching out. Please, include the Accept-Language request header with a valid ISO-639 locale or a default value e.g. "default" to avoid getting an error "Invalid locale id value bannerLogo. It must be a valid ISO-639 locale."

You can find more details here

Kind regards,
Sasha

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.