# create update and delete an article from rest api

**URL:** <https://forum.shopware.com/t/create-update-and-delete-an-article-from-rest-api/17695>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [10. Januar 2014 um 10:50 UTC](https://forum.shopware.com/t/create-update-and-delete-an-article-from-rest-api/17695 "2014-01-10T10:50:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepti](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@deepti](https://forum.shopware.com/u/deepti)\
**Post date:** [10. Januar 2014 um 10:50 UTC](https://forum.shopware.com/t/create-update-and-delete-an-article-from-rest-api/17695/1 "2014-01-10T10:50:04Z")

</div>

I recently started learning the shopware. I have a problem of create , update and delete an artikel from Rest API. I added the code…For the update and delete data from an REST API in …\engine\Shopware\Components\Api\Resource\Article.php $articleResource = \Shopware\Components\Api\Manager::getResource(‘Article’); $articleResource-\>delete(2); $articleResource-\>update(4, array(‘name’ =\> ‘Dummy Translation1’, ‘description’ =\> ‘Dummy Translation1’)); But for the create its is not working :oops: $articleResource-\>create(array(‘name’ =\> ‘VEry nwew’, ‘description’ =\> ‘Dummy Translation1’, ‘tax’ =\> 2,‘mainDetail’ =\> array( ‘number’ =\> ‘SW16623456’ ))); Also if i want to create or update 1000 of article. How can i do it. Do i have to write the seprate PHP Script for this. Please help me in this

---

<div class="post-metadata">

**Author:** ![tiagojsag](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tiagojsag/32/53_2.png) [@tiagojsag](https://forum.shopware.com/u/tiagojsag)\
**Post date:** [10. Februar 2015 um 15:08 UTC](https://forum.shopware.com/t/create-update-and-delete-an-article-from-rest-api/17695/2 "2015-02-10T15:08:01Z")

</div>

Hi, and welcome to the Shopware forum. Regarding your issue: if there’s an error during the article creation, the API will throw an exception. If not, the create() method will return your new article. You can use this to debug your code. greetings
