Skip to content

Commit 9599105

Browse files
committed
API-423: Submit a proposal
1 parent 4f6367f commit 9599105

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/php-client/ee-resources/product-drafts.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,13 @@ $publishedProduct = $client->getProductDraftApi()->get('top');
4848
You can get more information about the returned format of the product values [here](/documentation/resources.html#product-values).
4949

5050
The field `metadata` is specific to Akeneo PIM Enterprise Edition. The status of the draft is specified in this field.
51+
52+
### Submit a product draft for approval
53+
54+
```php
55+
$client = new \Akeneo\PimEnterprise\AkeneoPimEnterpriseClientBuilder('http://akeneo.com/')->buildAuthenticatedByPassword('client_id', 'secret', 'admin', 'admin');
56+
57+
$client->getProductProposalApi()->create('top');
58+
```
59+
60+
It is mandatory that the user already created a draft for the product `top`, and that this draft was not approved yet.

0 commit comments

Comments
 (0)