Crie um novo projeto dentro da organização no caminho da URL . As organizações nativas do Agent Engine exigem ORG_ADMIN ouSYSTEM_ADMIN e inserem um projeto do Agent Engine. As organizações apoiadas pelo Atlas criam o projeto no Atlas usando a concessão do Atlas delegada do chamador (ORG_ADMIN nessa organização; Atlas ORG_OWNER ou ORG_GROUP_CREATOR) e retornam um registro de projeto do Agent Engine. Filhos de propriedade do Agent Engine sob organizações Atlas não são criados.
Respostas
-
Versão de API não permitida ou malformada, uma operação indisponível no contrato publicado selecionado ou uma representação inaceitável (incluindo parâmetros de tipo de mídia não suportados ou SSE excluído). Falhas existentes de autenticação, autorização e limite de taxa têm precedência.
-
Criado
-
Solicitação inválida
-
Não autorizado
-
Atlas_payment_METHOD_REQUIRED
-
Proibido
-
Não encontrado
-
Conflito
-
Erro interno do servidor
-
Gateway incorreto
-
Serviço indisponível
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/orgs/{orgId}/projects' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"allow_member_invites": true,
"description": "string",
"name": "string",
"sharing_policy": {
"allowed_sources": [
"string"
],
"share_modes": [
"string"
],
"shareable": true
}
}'
{
"allow_member_invites": true,
"description": "string",
"name": "string",
"sharing_policy": {
"allowed_sources": [
"string"
],
"share_modes": [
"string"
],
"shareable": true
}
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"allow_member_invites": true,
"atlas": {
"environment": "string",
"id": "string",
"organization_id": "string"
},
"can_manage_deployments": true,
"created_at": "string",
"description": "string",
"id": "string",
"name": "string",
"org_id": "string",
"sharing_policy": {
"allowed_sources": [
"string"
],
"share_modes": [
"string"
],
"shareable": true
},
"source": "atlas",
"updated_at": "string",
"workspace_count": 42
}
{
"allow_member_invites": true,
"atlas": {
"environment": "string",
"id": "string",
"organization_id": "string"
},
"can_manage_deployments": true,
"created_at": "string",
"description": "string",
"id": "string",
"name": "string",
"org_id": "string",
"sharing_policy": {
"allowed_sources": [
"string"
],
"share_modes": [
"string"
],
"shareable": true
},
"source": "atlas",
"updated_at": "string",
"workspace_count": 42
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}