{
  "operationId": "repos/create-or-update-file-contents",
  "method": "PUT",
  "path": "/repos/{owner}/{repo}/contents/{path}",
  "summary": "APIs.io Engineering Platform Create or update file contents",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "example-for-creating-a-file",
      "example": {
        "message": "my commit message",
        "committer": {
          "name": "Monalisa Octocat",
          "email": "octocat@github.com"
        },
        "content": "bXkgbmV3IGZpbGUgY29udGVudHM="
      }
    },
    {
      "contentType": "application/json",
      "name": "example-for-updating-a-file",
      "example": {
        "message": "a new commit message",
        "committer": {
          "name": "Monalisa Octocat",
          "email": "octocat@github.com"
        },
        "content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz",
        "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3"
      }
    }
  ],
  "responseExamples": []
}