路径参数
-
Atlas 项目/组 ID。
-
您的应用程序的 ObjectID。App Services API 项目和应用程序 ID 部分演示了如何查找此值。
-
草稿的唯一
_id
值。
POST /groups/{groupId}/apps/{appId}/drafts/{draftId}/ 部署
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/drafts/{draftId}/deployment' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string"}'
请求示例
{
"name": "string"
}
响应示例 (201)
{
"_id": "string",
"name": "string",
"app_id": "string",
"draft_id": "string",
"user_id": "string",
"deployed_at": 42,
"origin": "string",
"commit": "string",
"status": "string",
"status_error_message": "string",
"diff_url": "string",
"remote_location": "US-VA"
}