Update an Event

Last updated 9 months ago

put
Update by ID

https://api.moltin.com
/v2/integrations/:id
Request
Response
Headers
Authorization
required
string
The Bearer token to grant access to the API
Body Parameters
configuration
optional
object
The webhook configuration object
observes
optional
array
An array of events you want to observe
enabled
optional
boolean
Should the event trigger or not. Default:false
integration_type
optional
string
webhook
description
optional
string
A description for the event
name
optional
string
The name of the event
type
required
string
Represents the type of object
200: OK
{
"data": {
"id": "8cb9e689-ede7-4f6d-b61a-6aa970d572dd",
"type": "integration",
"integration_type": "webhook",
"name": "Order shipping notification",
"description": "Send a shipping notification via email with discount code.",
"enabled": false,
"configuration": {
"url": "https://yourwebsite.com/order-created-notification"
},
"observes": ["order.fulfilled"],
"links": {
"self":
"https://api.moltin.com/v2/integrations/8cb9e689-ede7-4f6d-b61a-6aa970d572dd"
},
"meta": {
"timestamps": {
"created_at": "2018-04-30T09:35:32.202Z",
"updated_at": "2018-04-30T09:48:24.816Z"
}
}
}
}
cURL
curl -X PUT https://api.moltin.com/v2/integrations/:id \
-H "Authorization: Bearer: XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"type": "integration",
"enabled": false
}
}'