While accessing Swagger API, https://vRO_FQDN/vco/api/docs/index.html#/ , there is a POST method to push all the content into Git repo.
POST /api/content-repositories/requests/push
Its body content is in the format:
{
"authorEmail": "string",
"authorName": "Mayank Goyal",
"commitDate": "2021-06-21T05:17:18.380Z",
"committerEmail": "string",
"committerName": "string",
"diffEntries": [
{
"href": "string",
"newPath": "string",
"oldPath": "string",
"relations": {
"count": 0,
"links": [
{
"attributes": [
{
"displayValue": "string",
"name": "string",
"value": "string"
}
],
"href": "string",
"rel": "string",
"type": "string"
}
],
"startIndex": 0
},
"updateType": "string"
}
],
"localHead": "string",
"mergedEntries": [
{
"data": {},
"href": "string",
"newPath": "string",
"oldPath": "string",
"relations": {
"count": 0,
"links": [
{
"attributes": [
{
"displayValue": "string",
"name": "string",
"value": "string"
}
],
"href": "string",
"rel": "string",
"type": "string"
}
],
"startIndex": 0
},
"updateType": "string"
}
],
"message": "string",
"objectId": "string",
"objects": [
"string"
],
"parentId": "string"
}
Issue is that I couldn't make a successful push using this method, bacause I couldn't find what to fill-in in those string values. Any suggestions would be appreciated. Thanks
Checked with Chrome DevTools, with pushing all the content the following data was sent:
GET https://vra.corp.local/vco/api/content-repositories/state
Then POST https://vra.corp.local/vco/api/content-repositories/requests/push with data:
{"message":"commit title1\n\ncommit message1","diffEntries":null,"localHead":"23b57176f77b2c00766d332c87f5fb28cbbdac93"}
localHead is from the first request output.
I suggest playing with the GUI and checking different scenarios: what data is sent with the push request.
HTH