Always failing to setItem in Unity Cloud data.

I tried to use Unity Cloud save services for first time as a Rest API call. I do not have a backend and wanted to use this to verify PoC projects.
I get the authentication done by using await AuthenticationService.Instance.SignInAnonymouslyAsync(); and after getting a successful response save the player id from AuthenticationService.Instance.PlayerId; in a local string.
Now, that I have this, I also have a project ID for my project with cloud save services enabled(have tested by calling CloudSaveService.Instance.Data.ForceSaveAsync).
in same project, I made a Unity POST request with the header content type set to application/json and used JsonConvert.serialize() to convert my data into a string for testing.
My main code block looks like this:

string dataJson = JsonConvert.SerializeObject(dataToSet);
UnityWebRequest request = UnityWebRequest.Post(setItemUrl, dataJson);
request.uploadHandler.contentType = "application/json";
UnityWebRequestAsyncOperation asyncOp = request.SendWebRequest();
asyncOp.completed += operation =>
    if (request.result == UnityWebRequest.Result.Success)
        Debug.Log("set item response code : " + request.responseCode);
            $"{request.responseCode} : Some error occured trying to reach 

with data as {dataJson}");
// if(request.responseCode == 401) // invalid authentication
// {
string errorData = request.downloadHandler.text;
// }

But now, every-time I hit the request, I get

401 : Some error occured trying to reach 
 with data as {"key":"data2","value":{"strData":"value3"},"writeLock":""}

followed by

{"status":401,"title":"Unauthorized","type":"","requestId":"c015ac2d-2cb9-4498-bd80-59b3b7a95dec","detail":"Invalid Authorization header","code":51}

Can anyone tell me what I am doing wrong?

For anyone’s future reference, I found that we need to add a header called Authorization with value as Bearer <\idToken> / Bearer <\AccessToken> (depending on Service or client).

Once it is added, the token authorises the device allowing the request to be processed.