POST
/v0/documentCollections/mongodb/createMongoSyncCreate Mongo Collection SyncCredal lets you easily sync your MongoDB data for use in Collections and Agents. Create a new sync from a MongoDB collection to a Credal collection.
Request body
application/json
object
collectionIdstring · uuidrequiredconfigobjectrequiredShow child attributes
collectionNamestringrequiredfilterExpressionvaluerequiredAny type
sourceFieldsobjectrequiredShow child attributes
bodystringrequiredsourceNamestringrequiredsourceSystemUpdatedstringsourceUrlstringsyncNamestringrequiredmongoURIstringrequired{
"collectionId": "00000000-0000-0000-0000-000000000000",
"config": {
"collectionName": "string",
"filterExpression": null,
"sourceFields": {
"body": "string",
"sourceName": "string",
"sourceSystemUpdated": "string",
"sourceUrl": "string"
},
"syncName": "string"
},
"mongoURI": "string"
}Responses
objectdocumentCollections_MongoCollectionSyncResponse
MongoCollectionSyncResponse
mongoCredentialIdstring · uuidrequiredresourceIdstringrequiredsyncLaunchedbooleanrequired{
"mongoCredentialId": "00000000-0000-0000-0000-000000000000",
"resourceId": "string",
"syncLaunched": true
}