Hi I use this site for understand to migrate v1 to v2...
so I have scopes correct and working and authentication I leave as v1 as blog tell me to. then I change the create bucket to v2 like blog and it says bad request.
public static string CreateBucket(string accessToken, string bucketKey, string policy)
{
// (1) Build request
var client = new RestClient();
client.BaseUrl = new System.Uri(baseApiUrl);
// Set resource/end point
var request = new RestRequest();
request.Resource = "oss/v1/buckets";
request.Method = Method.POST;
// Add headers
request.AddHeader("Authorization", "Bearer " + accessToken);
request.AddHeader("Content-Type", "application/json"); // MH: skipping this works.
// Add JSON body. in simplest form.
request.AddJsonBody(new { bucketKey = bucketKey, policy = policy });
// (2) Execute request and get response
IRestResponse response = client.Execute(request);
Hi Frank,
Thanks for posting your question. This looks like something you want to post to the Forge Team. If you go to the following link, you will find where you can send in questions like this to the Forge Team.
https://developer.autodesk.com/
Here is the direct link to help
https://developer.autodesk.com/en/support/get-help
Hope this helps get you pointed in the right direction for help and have a great day.
Can't find what you're looking for? Ask the community or share your knowledge.