diff --git a/src/jsonapi_client/resourceobject.py b/src/jsonapi_client/resourceobject.py index 9cc5ee7..957f340 100644 --- a/src/jsonapi_client/resourceobject.py +++ b/src/jsonapi_client/resourceobject.py @@ -529,7 +529,7 @@ def _post_commit(self, status, result, location): # is received for PATCH, for example). self.mark_clean() - if status == HttpStatus.ACCEPTED_202: + if status == HttpStatus.CREATED_201: return self.session.read(result, location, no_cache=True).resource async def _commit_async(self, url: str= '', meta=None) -> None: