v1

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

Create Repository File

Create a file in a repo repository

post/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
messagestring required
new_branchstring nullable
signoffboolean nullable

Response

Successful Response

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