{
"Action": "CreateGitFiles",
"DepotId": 809883,
"LastCommitSha": "cd3e7461b4061346a4803d1494623fc7ffa7f96a",
"Message": "Create a new file named hello111.java",
"Ref": "master",
"NewRef": "",
"GitFiles": [
{
"Path": "src/main/hello.java",
"Content": "line1\nline2\nline3\nline4\nline5"
}
]
}
curl --location -g --request POST 'https://.coding.net/open-api?Action=CreateGitFiles' \
--header 'AccessToken;' \
--header 'Action;' \
--header 'Content-Type: application/json' \
--data-raw '{
"Action": "CreateGitFiles",
"DepotId": 809883,
"LastCommitSha": "cd3e7461b4061346a4803d1494623fc7ffa7f96a",
"Message": "Create a new file named hello111.java",
"Ref": "master",
"NewRef": "",
"GitFiles": [
{
"Path": "src/main/hello.java",
"Content": "line1\nline2\nline3\nline4\nline5"
}
]
}'{
"Response": null
}