msgraph-sdk-java icon indicating copy to clipboard operation
msgraph-sdk-java copied to clipboard

PATCH /subscriptions/{id} shouldn't require both properties

Open FaithOmbongi opened this issue 11 months ago • 0 comments

Describe the bug

As per the documentation, PATCH https://graph.microsoft.com/beta/subscriptions/{id} requires only 1 property to be defined. Unfortunately, as confirmed by this customer, the Java SDK requires both properties to be specified or the request fails with this error message:

Subscription must contain either the 'expirationDateTime' or 'notificationUrl' property and its value.

More details on the bug as reported by the customer @Yusvanth are in Microsoft Graph Q&A

The feature engineers have confirmed that this issue doesn't occur on the REST API or other SDKs.

Please assist to resolve the bug.

Expected behavior

Only the expirationDateTime property is required.

How to reproduce

See the customer issue + CxP response.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

FaithOmbongi avatar Mar 04 '25 08:03 FaithOmbongi