Request using Name

Hi,

Why do we have to work with ‘id’ in APIs? Why can’t identitynow search specific object with name in path param? Many a times we can’t provide filters in path param, lets say while sending a POST request to source, inow asks for id in URL, for which we have to first get the id of the source and then parse through whole response body to id, then us id to send a POST request.

1 Like

Hi Ashish. GUIDs are better for path parameters because they are guaranteed to be unique and they won’t contain special characters and spaces, where a name might. That is why all of our APIs accept guids in the url to get a single resource. Many of our collection APIs offer query parameters to filter by name, which you could use to lookup resources by name.

3 Likes