Rototo
Rototo

Reputation: 479

Alfresco cloud modify file https method

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_token=my_access_token

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_token=my_access_token

But I have this error :

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

Upvotes: 0

Views: 176

Answers (1)

Jeff Potts
Jeff Potts

Reputation: 10538

As Gagravarr says, try putting your access token in the authorization field of the HTTP request header, like this: Bearer [your access token]

See "Using the Access Token" in the API documentation PDF.

Upvotes: 2

Related Questions