Skip to content

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

@FaithOmbongi

Description

@FaithOmbongi

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions