Creates a new entity via HTTP POST.
Playwright Page with request API.
OData service root URL.
Name of the entity set.
Entity data to create.
Optional
HTTP options including required CSRF token.
The created entity with HTTP status and optional ETag.
ODataError with ERR_ODATA_CSRF if CSRF token is missing.
ERR_ODATA_CSRF
ODataError with ERR_ODATA_REQUEST_FAILED on HTTP error.
ERR_ODATA_REQUEST_FAILED
const result = await createEntity(page, '/sap/opu/odata/sap/SVC/', 'Products', { Name: 'Widget', Price: 42,}, { csrfToken: token }); Copy
const result = await createEntity(page, '/sap/opu/odata/sap/SVC/', 'Products', { Name: 'Widget', Price: 42,}, { csrfToken: token });
Creates a new entity via HTTP POST.