wp_update_post based function works on existing posts, but not new posts

I wasn’t adding the ID into the new array.

if ( get_post_type( $post_id ) == 'equipment' ) {

    $my_post = array();
    $my_post['ID'] = $post_id;
    $my_post['post_title'] = get_field( 'name', $post_id );

    wp_update_post( $my_post );

}