Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Update Mongo Collection Sync

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

Credal lets you easily sync your MongoDB data for use in Collections and Agents. Update an existing sync from a MongoDB collection to a Credal collection via the mongoCredentialId, to disambiguate between multiple potential syncs to a given collection.

Request body

application/json
object
configobjectrequired
Show child attributes
collectionNamestringrequired
filterExpressionvaluerequired

Any type

sourceFieldsobjectrequired
Show child attributes
bodystringrequired
sourceNamestringrequired
sourceSystemUpdatedstring
sourceUrlstring
syncNamestringrequired
mongoCredentialIdstring · uuidrequired
mongoURIstringrequired
Example request
{
  "config": {
    "collectionName": "string",
    "filterExpression": null,
    "sourceFields": {
      "body": "string",
      "sourceName": "string",
      "sourceSystemUpdated": "string",
      "sourceUrl": "string"
    },
    "syncName": "string"
  },
  "mongoCredentialId": "00000000-0000-0000-0000-000000000000",
  "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