How to read & then modify file through GraphQL API?

Basically I want to do the following with my own repository

  • read the Readme

  • push updated version with some modification

What is the best way to do it?

I tried to find anything related in grphql explorer but failed

Thank you

1 Like

I did not see this ability through v4. But v3 Contents API does exactly what you want (which you probably already knew).

1 Like

Bump! Any news on this feature support?

Using graphql to do queries is many ways better than using a Restful API

@yanisurbis 

To read the contents of README you can use the following query. I think so there is currently no mutation available for updating the contents.

1 Like