Path parameters
-
An Atlas Project/Group ID.
Query parameters
-
Whether or not to create a default application.
-
The App's product type. Apps use the
standardproduct type by default. For most apps, you do not need to specify aproductat all, or should specifystandard.The
atlas,data-api, anddevice-syncproduct types represent special apps for Atlas Triggers, Atlas Data API, and Atlas Device Sync that you can access through the Atlas UI.Values are
standard,atlas,data-api, ordevice-sync.
Body
Required
An object that describes a new app to create
-
The name of the application. Must begin with a letter and may only contain ASCII letters, numbers, underscores, and hyphens.
provider_region
string One of: Values are
aws-us-east-1,aws-us-west-2,aws-us-east-2,aws-eu-central-1,aws-eu-west-1,aws-eu-west-2,aws-ap-southeast-1,aws-ap-southeast-2,aws-ap-south-1, oraws-sa-east-1.Values are
azure-eastus2,azure-westus,azure-westeurope,azure-eastasia, orazure-southeastasia.Values are
gcp-us-central1,gcp-us-east4,gcp-us-west1,gcp-europe-west1, orgcp-asia-south1.-
An identifier of the location where an app server is physically deployed to, regardless of the cloud provider that hosts the app.
Values are
US-VA,US-OR,DE-FF,IE,AU,IN-MB,SG, orBR-SP. -
An application deployment model.
Values are
GLOBALorLOCAL. -
The application's environment.
Values are
development,testing,qa, orproduction. -
The id of an App Services template app to use as a base for the new app.
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"MyApp","provider_region":"aws-us-east-1","location":"US-VA","deployment_model":"GLOBAL","environment":"production","template_id":"string","data_source":{"_id":"string","name":"string","type":"string"}}'
{
"name": "MyApp",
"provider_region": "aws-us-east-1",
"location": "US-VA",
"deployment_model": "GLOBAL",
"environment": "production",
"template_id": "string",
"data_source": {
"_id": "string",
"name": "string",
"type": "string"
}
}
{
"name": "MyApp",
"provider_region": "aws-us-east-1",
"location": "US-VA",
"deployment_model": "GLOBAL",
"environment": "production",
"_id": "633209ffd3bd3478005d1bac",
"client_app_id": "myapp-abcde",
"domain_id": "63320a2b5f9de9a6e0a213e8",
"group_id": "5b2ec991973129243223a114",
"last_used": 1664224746,
"last_modified": 1656440824,
"product": "standard"
}
{
"error": "string",
"error_code": "string"
}