v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-0318386446.4 KB

Update Repository File

Update a file in a repo repository

put/api/v2/repos/{entity_name}/{repo_name}/contents/{filepath}

Path parameters

entity_namestring required
repo_namestring required
filepathstring required

Headers

authorizationstring nullable

Cookies

modaic_sessionstring nullable

Request body

branchstring
contentstring required
from_pathstring nullable
messagestring required
new_branchstring nullable
shastring required
signoffboolean nullable

Response

Successful Response

{"stackTrail":"paths:/api/v2/repos/{entity_name}/{repo_name}/contents/{filepath}:put:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}