# Company end point race condition

**URL:** <https://community.servicem8.com/t/company-end-point-race-condition/595>\
**Category:** API & SDK\
**Created:** [June 22, 2022, 9:01am UTC](https://community.servicem8.com/t/company-end-point-race-condition/595 "2022-06-22T09:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [June 22, 2022, 9:01am UTC](https://community.servicem8.com/t/company-end-point-race-condition/595/1 "2022-06-22T09:01:25Z")

</div>

**Originally posted by Kieran Sasse**

It looks like if multiple create requests are made to the company create endpoint at the same time with the same name property set both can(incorrectly) succeed.

There is a constraint on the ServiceM8 side that normally prevents this but I somehow have the same companies with exactly the same name created 1 second apart from each other.

Subsequent requests to the update endpoint also fail until I delete one of the records.
