VMware Cloud Community
santapaz
Contributor
Contributor

vCloud Director 10 Branding , openAPI call error "minorErrorCode": "NOT_AUTHENTICATED",

Hi all,

I'm trying to edit the vCloud Director 10 system (provider) Branding via openapi calls (as per documentation).

Getting  (GET )the branding works.

Setting (PUT) do not work.

My POSTMAN params are:

PUT https://10.0.1.11/cloudapi/branding/

Using Basic Authorization with username and password .

Tried appeding @system on username . did not work.

headers

Authorization Basic XXXXX

Content-Type: application/json

Accept */*

Host: calculated during runtime

body

{

    "portalName": "MYCLOUD",

    "selectedTheme": {

        "themeType": "BUILT_IN",

        "name": "Default"

    }

}

response : HTTP 401 status code

body

{

    "minorErrorCode": "NOT_AUTHENTICATED",

    "message": "[ 3cd87997-71c2-4f57-96d0-dfac633c818f ] This operation is denied.",

    "stackTrace": null

}

Any help?

Many thanks in advance

0 Kudos
1 Reply
skumarg88
Contributor
Contributor

Hi Santapaz,

Try to add the x-vcloud-authorization on your header when you use the PUT.

You will get this key and its value when you request for the token from vCloud Director.

0 Kudos