diff --git a/rest/management-api-v2/cm_api_v2_delete_webhook.curl b/rest/management-api-v2/cm_api_v2_delete_webhook.curl new file mode 100644 index 00000000..4e4eb0f4 --- /dev/null +++ b/rest/management-api-v2/cm_api_v2_delete_webhook.curl @@ -0,0 +1,4 @@ +curl --request DELETE \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext/d53360f7-79e1-42f4-a524-1b53a417d03e \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json' diff --git a/rest/management-api-v2/cm_api_v2_get_webhook.curl b/rest/management-api-v2/cm_api_v2_get_webhook.curl new file mode 100644 index 00000000..5fec625f --- /dev/null +++ b/rest/management-api-v2/cm_api_v2_get_webhook.curl @@ -0,0 +1,4 @@ +curl --request GET \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext/5df74e27-1213-484e-b9ae-bcbe90bd5990- \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json' diff --git a/rest/management-api-v2/cm_api_v2_get_webhooks.curl b/rest/management-api-v2/cm_api_v2_get_webhooks.curl new file mode 100644 index 00000000..5692b9bc --- /dev/null +++ b/rest/management-api-v2/cm_api_v2_get_webhooks.curl @@ -0,0 +1,4 @@ +curl --request GET \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json' diff --git a/rest/management-api-v2/cm_api_v2_post_webhook.curl b/rest/management-api-v2/cm_api_v2_post_webhook.curl new file mode 100644 index 00000000..d6264970 --- /dev/null +++ b/rest/management-api-v2/cm_api_v2_post_webhook.curl @@ -0,0 +1,55 @@ +curl --request POST \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json' \ + --data ' +{ + "name": "Example", + "url": "https://example.com", + "secret": "secret", + "triggers": { + "delivery_api_content_changes": [ + { + "type": "content_item_variant", + "operations": [ + "publish", + "unpublish" + ] + }, + { + "type": "taxonomy", + "operations": [ + "archive", + "restore", + "upsert" + ] + } + ], + "preview_delivery_api_content_changes": [ + { + "type": "content_item_variant", + "operations": [ + "archive", + "upsert" + ] + }, + { + "type": "taxonomy", + "operations": [ + "archive", + "restore", + "upsert" + ] + } + ], + "workflow_step_changes": [ + { + "type": "content_item_variant", + "transitions_to": [ + { "id": "b4363ccd-8f21-45fd-a840-5843d7b7f008" }, + { "id": "88ac5e6e-1c5c-4638-96e1-0d61221ad5bf" } + ] + } + ] + } +}' diff --git a/rest/management-api-v2/mapi_v2_disable_webhook.curl b/rest/management-api-v2/mapi_v2_disable_webhook.curl new file mode 100644 index 00000000..84c8342c --- /dev/null +++ b/rest/management-api-v2/mapi_v2_disable_webhook.curl @@ -0,0 +1,4 @@ +curl --request PUT \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext/5df74e27-1213-484e-b9ae-bcbe90bd5990/disable \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json' diff --git a/rest/management-api-v2/mapi_v2_enable_webhook.curl b/rest/management-api-v2/mapi_v2_enable_webhook.curl new file mode 100644 index 00000000..03e421fe --- /dev/null +++ b/rest/management-api-v2/mapi_v2_enable_webhook.curl @@ -0,0 +1,4 @@ +curl --request PUT \ + --url https://manage.kontent.ai/v2/projects//webhooks-vnext/5df74e27-1213-484e-b9ae-bcbe90bd5990/enable \ + --header 'Authorization: Bearer ' \ + --header 'Content-type: application/json'