+ Start a Discussion
osf_teamosf_team 

Update name and title of a file uploaded in chatter using Chatter API

I am not able to update name and title of a file uploaded in chatter using Chatter api. I am getting an error.

What is the structure of the json file which stores the fields desc and title for updation.

 

[{"message":"Missing expected \"fileData\" binary parameter","errorCode":"POST_BODY_PARSE_ERROR"}]

 

Plz reply.

osf_teamosf_team

Can you suggest me what will be the structure of HTTP can along with the format of desc and tittle. 

ChrisOctagonChrisOctagon

From this error it looks like you're trying to use a POST to upload a new file, not modify an existing one. To modify a resource, use a PATCH. I think the only field you can change on a file this way is the "title".