Skip to content

Commit 019234b

Browse files
committed
CEXT-4516: Create an eventing multiprovider documentation
1 parent 21ad121 commit 019234b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/events/api.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ curl -H "Authorization:Bearer <AUTH_TOKEN>" \
337337

338338
```json
339339
{
340+
"id": "3",
340341
"provider_id": "1902bc50-12345-41e8-955b-af4a9667823f",
341342
"instance_id": "my_instance_id",
342343
"label": "my_provider_2",
@@ -390,6 +391,7 @@ curl -i -X POST \
390391

391392
```json
392393
{
394+
"id": "3",
393395
"provider_id": "1902bc50-12345-41e8-955b-af4a9667823f",
394396
"instance_id": "my_instance_id",
395397
"label": "My provider",
@@ -400,7 +402,7 @@ curl -i -X POST \
400402

401403
### Update event provider
402404

403-
The `PUT /rest/<store_view_code>/V1/eventing/eventProvider/<provider_id>` endpoint updates the event provider with the specified ID. The request body has the same format as the `POST` request.
405+
The `PUT /rest/<store_view_code>/V1/eventing/eventProvider/<provider_id>` endpoint updates the event provider with the specified ID. The request body has the same format as the `POST` request except that `id` must be provided.
404406

405407
**Headers:**
406408

@@ -419,6 +421,7 @@ curl -i -X PUT \
419421
-d \
420422
'{
421423
"eventProvider": {
424+
"id": "3",
422425
"provider_id": "1902bc50-12345-41e8-955b-af4a9667823f",
423426
"instance_id": "my_instance_id",
424427
"label": "My Updated provider",
@@ -432,6 +435,7 @@ curl -i -X PUT \
432435

433436
```json
434437
{
438+
"id": "3",
435439
"provider_id": "1902bc50-12345-41e8-955b-af4a9667823f",
436440
"instance_id": "my_instance_id",
437441
"label": "My Updated provider",

0 commit comments

Comments
 (0)