client.scripts.post_python3_git_commits

A method of the Scripts endpoint.

post_python3_git_commits(id: int, content: str, message: str, file_hash: str) Response

Commit and push a new version of the file

API URL: POST /scripts/python3/{id}/git/commits

import civis
client = civis.APIClient()
response = client.scripts.post_python3_git_commits(...)
Parameters:
idint

The ID of the item.

contentstr

The contents to commit to the file.

messagestr

A commit message describing the changes being made.

file_hashstr

The full SHA of the file being replaced.

Returns:
civis.Response
  • contentstr

    The file’s contents.

  • typestr

    The file’s type.

  • sizeint

    The file’s size.

  • file_hashstr

    The SHA of the file.