cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco cloud update content file https PUT requests

dahevos
Champ in-the-making
Champ in-the-making
Hello,

I use alfresco cloud.

I can authentificate, get my access_token, and access to a file by having a get request:

[GET] https://api.alfresco.com/mycompany.com/public/cmis/versions/1.0/atom/content?id=id_of_my_file&access...

Now I want to update the content of the file. The doc say to use PUT request. Is what I did :

[PUT] https://api.alfresco.com/mycompany.com/public/cmis/versions/1.0/atom/content?id=id_of_my_file&access...

But I have this error :

{ "error":"invalid_request", "error_description":"Missing access token" }

I don't understand why this error, I specify in the address my access token so why ???

Thanks !
2 REPLIES 2

aniruddhsinh
Champ in-the-making
Champ in-the-making
Have you got any success for this issue? I am facing the same thing.

{ "error":"invalid_request", "error_description":"Missing access token" }

Please do let me know if you have got the result for this.

For PUT/POST requests your token key should be added as
Header:
Name: Authorization
Value: Bearer %your_token_key% .