Why unable to unmarshal SAMLAttribute for patch operation?

SAML Inline Hook Response

{
    "error": null,
    "commands": [
        {
            "type": "com.okta.assertion.patch",
            "value": [
                {
                    "op": "add",
                    "path": "/claims/extPatientId",
                    "value": {
                        "attributes": {
                            "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
                        },
                        "attributeValues": {
                            "attributes": {
                                "xsi:type": "xs:string"
                            },
                            "value": "4321"
                        }
                    }
                }
            ]
        }
    ],
    "debugContext": {}
}

System Log

Failure processing inline hook response
failure: Unable to unmarshal SAMLAttribute for patch operation(op=add, path=/claims/extPatientId)

Self resolved. :sweat_smile:

                         "attributes": {
                             "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
                         },
-                        "attributeValues": {
+                        "attributeValues": [
                             "attributes": {
                                 "xsi:type": "xs:string"
                             },
                             "value": "4321"
-                        }
+                        ]
                     }
                 }
             ]