Steps to replicate the issue (include links if applicable):
- Create a new wikidata item through the REST API with at least one statement.
- Attempt to modify or remove the statement in the newly created item.
- Upon submission, receive the error Revision with ID not found.
What happens?:
It's not possible to remove or modify statements for a new Wikidata item created through the REST API.
What should have happened instead?:
The statement should be removed or updated when modified as is the case for a manually created item.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Firefox 148.0.2
Wikidata items where this problem can be seen:
Curl command used to create the items:
`curl -X 'POST' \
'https://www.wikidata.org/w/rest.php/wikibase/v1/entities/items' \ --header 'accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer '$WIKIDATA_ACCESS_TOKEN \ --header 'X-Authenticated-User: '$WIKIDATA_USERNAME \ -d @payload.json`
I can attach the JSON payload file(s) if needed.

