Adding an Arc via API

Can you please correct your post, considering how to post code correctly in the forum:

Thanks!