deploy

Create a Deployment Draft

Create a new application deployment draft, if none exists.

post/groups/{groupId}/apps/{appId}/drafts

Response

Successfully created draft.

_idstring

The unique ID of the draft.

user_idstring

The unique _id value of the MongoDB Cloud user that created the draft.

Example response

{
  "app": {
    "name": "MyApp",
    "environment": "production",
    "_id": "633209ffd3bd3478005d1bac",
    "client_app_id": "myapp-abcde",
    "domain_id": "63320a2b5f9de9a6e0a213e8",
    "group_id": "5b2ec991973129243223a114",
    "last_used": 1664224746,
    "last_modified": 1656440824
  }
}

Changes

Changed in 2 of the 50 revisions of this API.27

  • v3e2240dd053bd16See the full diff
    • the app/allOf[App]/environment response's property type/format changed from string/ to / for status 201

      response-property-type-changed

    • added AppEnvironment subschema #1 to the app/allOf[App]/environment response property allOf list for the response status 201

      response-property-all-of-added

    • removed the enum value from the app/allOf[App]/environment response property for the response status 201

      response-property-enum-value-removed

    • removed the development enum value from the app/allOf[App]/environment response property for the response status 201

      response-property-enum-value-removed

    • removed the production enum value from the app/allOf[App]/environment response property for the response status 201

      response-property-enum-value-removed

    • removed the qa enum value from the app/allOf[App]/environment response property for the response status 201

      response-property-enum-value-removed

    • removed the testing enum value from the app/allOf[App]/environment response property for the response status 201

      response-property-enum-value-removed

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • v31d1564c0dca111See the full diff
    • removed the success response with the status 200

      response-success-status-removed

    • added the success response with the status 201

      response-success-status-added