Skip to content

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}
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" }'
conn
required
string
/^pcn_[a-z0-9]{26}$/

Example

pcn_01hx0000000000000000000000
buttonId
required
string
>= 1 characters <= 256 characters
Media typeapplication/json
object
brandId
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
tag
string
>= 1 characters <= 64 characters
event
string
/^[a-z][a-z0-9_.-]{0,63}$/

Action saved

Media typeapplication/json
object
buttonId
required
string
brandId
required
string
tag
required
string
nullable
event
required
string
nullable
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"
}
}