Return All Teams in One Organization
/api/atlas/v2/orgs/{orgId}/teams Returns all teams that belong to the specified organization. Teams enable you to grant project access roles to MongoDB Cloud users. MongoDB Cloud only returns teams for which you have access. To use this resource, the requesting Service Account or API Key must have the Organization Member role.
Parameters
path Path Parameters
| Name | Type |
|---|---|
orgId
required
Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access. | string |
query Query Parameters
| Name | Type |
|---|---|
envelope Flag that indicates whether Application wraps the response in an | boolean |
itemsPerPage Number of items that the response returns per page. | number |
includeCount Flag that indicates whether the response returns the total number of items (totalCount) in the response. | boolean |
pageNum Number of the page that displays the current set of the total objects that the response returns. | number |
pretty Flag that indicates whether the response body should be in the prettyprint format. | boolean |
Responses
OK
links?: readonly
results?: readonly
totalCount?: number;
}
Client Errors
Bad Request.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Unauthorized.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Forbidden.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Not Found.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}
Server Errors
Internal Server Error.
badRequestDetail?:
detail?: string;
error: number;
errorCode: string;
parameters?: readonly {}[];
reason?: string;
}