I'm not sure if there are any tutorials on the specifics of understanding the API documentation. A lot of what I've learned is through reading the API documentation for what I want to do multiple times, seeing if someone else posted about it in Canvas Community yet, and/or trial and error.
For File, if you are trying to add a Module Link to a File, then similar to a Discussion, you likely need to ensure the File already exists in the course. You could also try adding a File and manually adding it to a Module. Then, use the API call to get the Module Items and check the settings for the File item to ensure you are using the proper settings when you try to create it with an API call.