Hi @chandni,
Sorry for the delayed response. Please ensure that you are using the correct elements for your wp_insert_post() function. For instance the following elements should be defined as follows:
‘post_id’ => ‘new_post’,
‘post_status’ => ‘publish’