Update the name, mapping, status (active, paused) or signature; `hmac: null` removes the signature (captures.write)
PATCH
/v1/inbound-webhooks/{webhook}
const url = 'https://api.replifier.com/v1/inbound-webhooks/ibw_01hx0000000000000000000000';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","mapping":{"email":"example","name":{"path":"example"},"externalId":"example","occurredAt":"example","value":"example","currency":{"path":"example"},"properties":{}},"status":"active","hmac":{"header":"example","algorithm":"sha256-hex","prefix":"","secret":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.replifier.com/v1/inbound-webhooks/ibw_01hx0000000000000000000000 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "mapping": { "email": "example", "name": { "path": "example" }, "externalId": "example", "occurredAt": "example", "value": "example", "currency": { "path": "example" }, "properties": {} }, "status": "active", "hmac": { "header": "example", "algorithm": "sha256-hex", "prefix": "", "secret": "example" } }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”webhook
required
string
Example
ibw_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
mapping
status
string
hmac
object
header
required
string
algorithm
required
string
prefix
string
secret
required
string
Responses
Section titled “Responses”Webhook
Media typeapplication/json
object
id
required
string
brandId
required
string
name
required
string
status
required
string
mapping
required
hmac
required
object
header
required
string
algorithm
required
string
prefix
required
string
lastReceivedAt
required
string
lastResult
required
string
lastBody
createdAt
required
string
updatedAt
required
string
url
string
Example
{ "status": "active", "mapping": { "properties": {} }, "hmac": { "algorithm": "sha256-hex" }, "lastResult": "accepted"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}