<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -",
    "watchOS: 11.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRCommandWithRequiredResponse/requiredResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRCommandWithRequiredResponse(py)requiredResponse"
  },
  "title" : "requiredResponse"
}
-->

# requiredResponse

The response that represents this command succeeding.

```
var requiredResponse: [NSNumber : [String : Any]]? { get set }
```

## Discussion

If this is nil, that indicates that the invoke is considered successful if it
does not result in an error status response.

If this is is not nil, then the invoke is considered successful if
the response is a data response and for each entry in the provided
requiredResponse the field whose field ID matches the key of the entry has a
value that equals the value of the entry.  Values of entries are data-value
dictionaries.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)