You can change your document code using the following API :
PUT /api/documents/{document_code}
Here is an example of use :
curl --request PUT \
--url https://your-company.quable.com/api/documents/{old_document_code} \
--header 'accept: application/ld+json' \
--header 'content-type: application/json' \
--data '
{
"id": "new_document_code"
}
More information on : https://docs.quable.com/reference/putdocumentitem