Change a webhook subscription
PUT
/subscriptions/{id}Modified at: 2 months ago
Request
Path Params
id
string <uuid>
required
Header Params
X-Integration-Name
string
required
Integration name
Example:
API Documentation
X-Integration-Provider
string
required
Integration provider
Example:
cobra GmbH
X-Cobra-TenantId
string
required
Tenant ID
Example:
12e39e53-ece1-4d8d-8958-e782de1dbef0
X-Integration-Contact
string
optional
Integration contact
Example:
info@cobra.de
Body Params application/json
No schema defined
Example
{
"caption": "Event created",
"webhookId": "80f48afa-4927-43de-9d0d-24cf4aba53cf",
"method": "POST",
"url": "https://www.mytesturl.de",
"errorEmail": "error@cobra.de",
"payload": "{\"firstName\": \"John\",\"lastName\": \"doe\",\"EventNumber\": \"<EventNumber>\"}",
"headers": {
"MyHeader1": "HeaderValue1",
"MyHeader2": "HeaderValue2"
}
}
Request samples
Responses
Success(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"data": {
"id": "82c99570-48d6-4e2b-bc92-80935cfea5cf",
"dateCreate": "2024-07-16T09:58:20.1811627+00:00",
"dateModified": "2024-07-16T09:58:20.1811629+00:00",
"caption": "Event created",
"webhookId": "80f48afa-4927-43de-9d0d-24cf4aba53cf",
"method": "POST",
"url": "https://www.mytesturl.de",
"errorEmail": "error@cobra.de",
"payload": "{\"firstName\": \"John\",\"lastName\": \"doe\",\"EventNumber\": \"<EventNumber>\"}",
"headers": {
"MyHeader1": "HeaderValue1",
"MyHeader2": "HeaderValue2"
}
},
"message": "",
"metaData": {
"totalResults": 1,
"responseTimeStamp": "2024-07-16T09:58:20.1811648Z"
},
"statusCode": 200
}
Modified at 2 months ago