Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Create Mongo Collection Sync

POST/v0/documentCollections/mongodb/createMongoSyncCreate Mongo Collection Sync

Credal 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 · uuidrequired
configobjectrequired
Show child attributes
collectionNamestringrequired
filterExpressionvaluerequired

Any type

sourceFieldsobjectrequired
Show child attributes
bodystringrequired
sourceNamestringrequired
sourceSystemUpdatedstring
sourceUrlstring
syncNamestringrequired
mongoURIstringrequired
Example request
{
  "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

200Response with status 200application/json
objectdocumentCollections_MongoCollectionSyncResponse

MongoCollectionSyncResponse

mongoCredentialIdstring · uuidrequired
resourceIdstringrequired
syncLaunchedbooleanrequired
Example response
{
  "mongoCredentialId": "00000000-0000-0000-0000-000000000000",
  "resourceId": "string",
  "syncLaunched": true
}
Documentation menu