Skip to content

PATCH Request to Lithnet REST API v2 Returning 404 #41

@ccthis

Description

@ccthis

Problem
Attempting to update MIM resource attributes via PATCH request to /v2/resources/{id} returns: 404 Not Found, despite:

  • GET requests to the same endpoint working fine
  • Web.config explicitly allowing PATCH verb
  • Clean Lithnet REST API installation (v2.0.6692.17445)

What We've Tried
Method variations: PUT, PATCH, POST - all return 404
URL formats:

  • /v2/resources/{id}
  • /v2/resources/{id}/
  • /v1/resources/{id} (V1 API)

Web.config fixes:

  • Removed WebDAV handler and module
  • Fixed handler ordering
  • Restored clean original Lithnet configuration

IIS configuration:

  • Verified ExtensionlessUrlHandler supports all verbs including PATCH
  • Verified UrlRoutingModule enabled
  • Verified handlers process requests

Current State

  • GET /v2/resources/{id} → 200 OK ✅
  • PATCH /v2/resources/{id} → 404 Not Found ❌
  • Authentication working (Kerberos from browser)
  • Payload correctly formatted JSON

Question
Is the PATCH endpoint for updating resources supposed to work on /v2/resources/{id}, or is there a different endpoint/format required? Documentation shows PATCH with JSON body should work, but requests return 404 despite the resource existing (proven by successful GET).

Ref 1: https://github.com/lithnet/resourcemanagement-webservice/wiki/Update-a-resource
Ref 2: https://github.com/lithnet/resourcemanagement-webservice/wiki/Add-a-value-to-a-specific-attribute-of-a-resource

Environment: Server 2019, Lithnet ResourceManagement WebService v2.0.6692.17445 on IIS with Basic Auth over HTTPS

Thank you for all the hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions