Set the tag and/or flow event (`custom.<event>`) that a button or list item triggers (credentials.manage).
PUT
/v1/connections/whatsapp/{conn}/button-actions/{buttonId}
const url = 'https://api.replifier.com/v1/connections/whatsapp/pcn_01hx0000000000000000000000/button-actions/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"brandId":"brd_01hx0000000000000000000000","tag":"example","event":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/connections/whatsapp/pcn_01hx0000000000000000000000/button-actions/example \ --header 'Content-Type: application/json' \ --data '{ "brandId": "brd_01hx0000000000000000000000", "tag": "example", "event": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”conn
required
string
Example
pcn_01hx0000000000000000000000buttonId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
brandId
string
Example
brd_01hx0000000000000000000000tag
string
event
string
Responses
Section titled “Responses”Action saved
Media typeapplication/json
object
buttonId
required
string
brandId
required
string
tag
required
string
event
required
string
updatedAt
required
string
Example generated
{ "buttonId": "example", "brandId": "example", "tag": "example", "event": "example", "updatedAt": "example"}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" }}