Getting 404 error when accessing SmartObject Odata endpoint

Having trouble accessing your newly created OData endpoint?

This guide addresses the 404 error you might encounter when trying to reach a new SmartObject exposed as an OData endpoint after setting it up through K2 Management.

Steps:

  1. Create the OData endpoint:

    • Go to K2 Management and navigate to Integration > APIs > SmartObject Odata.
    • Add a new SmartObject and configure it as an OData endpoint.
    • Apply the changes.
  2. Access the endpoint:

    • Try reaching the endpoint using the following URL format: https://[KUIDorVanityValue].onk2.com/api/odatav4/v4/cars (Replace [KUIDorVanityValue] with your actual K2 Cloud URL or vanity value).  You may experience an HTTP 404 error.
  3. Resolve the 404 error:

    • If you encounter a 404 error, it might be necessary to refresh the endpoint.
    • Use this URL to refresh the endpoint: https://[KUIDorVanityValue].onk2.com/api/odatav4/op/refresh
    • Once refreshed, you should be able to access your new OData endpoint using the original URL.

Note: Replace [KUIDorVanityValue] with your specific K2 Cloud URL or vanity value in both endpoint URLs.

Comments

Popular posts from this blog

Blocking Error during K2 5.6 Server migration

Client Credentials flow with K2 Cloud with Odata, Workflow REST or SCIM

Blocking error RegisterServiceInstanceObjects when upgrading to K2 5.6/5.7