Cambia el rol de una invitación pendiente identificada por el ID de invitación hexadecimal _id.
Parámetros de path
-
ID del proyecto (ID de objeto hexadecimal)
-
ID de invitación (ID de objeto hexadecimal)
Respuestas
-
Versión de API no compatible o con formato incorrecto, operación no disponible en el contrato publicado seleccionado o representación inaceptable (incluidos parámetros de tipo de medio no compatibles o SSE excluidos). Los fallos de autenticación, autorización y límite de velocidad existentes tienen prioridad.
-
OK
-
Solicitud incorrecta
-
No encontrado
-
Error interno del servidor
PARCHE /api/v1/projects/{id}/invitations/{invitationId}
curl \
--request PATCH 'https://agentengine.mongodb.com/api/v1/projects/{id}/invitations/{invitationId}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"role": "string"
}'
Solicitar ejemplos
{
"role": "string"
}
Ejemplos de respuesta (406)
Operación no disponible
{
"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"
}
Ejemplos de respuesta (406)
{
"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"
}
Ejemplos de respuesta (200)
{
"created_at": "string",
"expires_at": "string",
"invitation_code": "string",
"invitation_id": "string",
"invitee_email": "string",
"org_id": "string",
"role": "string"
}
Ejemplos de respuesta (200)
{
"created_at": "string",
"expires_at": "string",
"invitation_code": "string",
"invitation_id": "string",
"invitee_email": "string",
"org_id": "string",
"role": "string"
}
Ejemplos de respuesta (400)
{
"code": "string",
"error": "string",
"success": true
}
Ejemplos de respuesta (400)
{
"code": "string",
"error": "string",
"success": true
}
Ejemplos de respuesta (404)
{
"code": "string",
"error": "string",
"success": true
}
Ejemplos de respuesta (404)
{
"code": "string",
"error": "string",
"success": true
}
Ejemplos de respuesta (500)
{
"code": "string",
"error": "string",
"success": true
}
Ejemplos de respuesta (500)
{
"code": "string",
"error": "string",
"success": true
}