{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-associate-faces-response-schema.json",
  "title": "AssociateFacesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-face-api-openapi.yml#/components/schemas/AssociateFacesResponse",
  "type": "object",
  "properties": {
    "AssociatedFaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssociatedFace"
      },
      "description": "An array of AssociatedFace objects containing FaceIDs that have been successfully associated with the UserID. Returned if the AssociateFaces action is successful."
    },
    "UnsuccessfulFaceAssociations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnsuccessfulFaceAssociation"
      },
      "description": "An array of UnsuccessfulAssociation objects containing FaceIDs that are not successfully associated along with the reasons. Returned if the AssociateFaces action is successful."
    },
    "UserStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "UPDATING",
        "CREATING",
        "CREATED"
      ],
      "description": "The status of an update made to a UserID. Reflects if the UserID has been updated for every requested change."
    }
  },
  "$defs": {
    "AssociatedFace": {
      "type": "object",
      "properties": {
        "FaceId": {
          "type": "string",
          "description": "Unique identifier assigned to the face."
        }
      }
    },
    "UnsuccessfulFaceAssociation": {
      "type": "object",
      "properties": {
        "FaceId": {
          "type": "string",
          "description": "A unique identifier assigned to the face."
        },
        "UserId": {
          "type": "string",
          "description": "A provided ID for the UserID. Unique within the collection."
        },
        "Confidence": {
          "type": "number",
          "description": "Match confidence with the UserID, provides information regarding if a face association was unsuccessful because it didn't meet UserMatchThreshold."
        },
        "Reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FACE_NOT_FOUND",
              "ASSOCIATED_TO_A_DIFFERENT_USER",
              "LOW_MATCH_CONFIDENCE"
            ]
          },
          "description": "The reason why the association was unsuccessful."
        }
      }
    }
  }
}