Diff a draft with the current deployment

GET /groups/{groupId}/apps/{appId}/drafts/{draftId}/diff

Return a diff between the currently deployed application and the specified draft.

Path parameters

Responses

  • 200 application/json

    Successfully diffed draft.

    Hide response attributes Show response attributes object
    • diffs array[string]

      A list where each item is the line-by-line diff for a specific configuration file.

    • hosting_files_diff object

      The filenames of hosted files that have been added, removed, or modified.

      Hide hosting_files_diff attributes Show hosting_files_diff attributes object
      • added array[string]

        A list where each element is the name of a file that was added in the draft.

      • deleted array[string]

        A list where each element is the name of a file that was deleted in the draft.

      • modified array[string]

        A list where each element is the name of a file that was changed in the draft.

GET /groups/{groupId}/apps/{appId}/drafts/{draftId}/diff
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/drafts/{draftId}/diff' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "diffs": [
    "string"
  ],
  "hosting_files_diff": {
    "added": [
      "string"
    ],
    "deleted": [
      "string"
    ],
    "modified": [
      "string"
    ]
  }
}