Giter Club home page Giter Club logo

Comments (3)

bobjflong avatar bobjflong commented on July 25, 2024

Hi @mikegioia

The API is designed fairly RESTfully, split into resources:

Why am I getting a "404" error when a company ID doesn't exist in a batch update?

The answer to this is because the resource is Company and the resource cannot be found with your supplied parameters.

A missing endpoint is pretty rare (ie. I don't think it's ever happened). You don't need a different exception class for each endpoint, and you don't need to parse the error message. The 404 will tell you if the resource is missing (and other 4xxs will correspond to other types of client errors). In other words, we try to use HTTP instead of rolling our own error signalling.

I hope that helps explain our methodology.

from intercom-php.

mikegioia avatar mikegioia commented on July 25, 2024

No @bobjflong it doesn't explain it. If I send a batch update of 50 company IDs and 1 company doesn't exist, the whole response returns a 404. I don't understand how that makes sense. If it was a single company I could understand that, but this is a batch update.

You're not even returning WHICH company didn't exist. It's just a full stop 404. Do you see how this causes problems during batch updates? I can't know which one failed, and the 49 others didn't go through. So now I have to do them 1 at a time which will defeat the purpose of the batching and cause me to run over my rate limit!

from intercom-php.

bobjflong avatar bobjflong commented on July 25, 2024

We are designing appropriate APIs for bulk updates: https://developers.intercom.io/reference#bulk-apis

(Which don't have company tagging right now).

Why not get in touch through the Intercom messenger (ask for Bob) and we can substantially increase your rate limit if you explain what you need.

from intercom-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.