actions
Atualiza uma ação específica.
put/v1/webhooks/actions/{_id}
Request
- Base URL: http://localhost:8888/api
- URL: http://localhost:8888/api/v1/webhooks/actions/{_id}
- Auth: API key in header authorization
Path parameters
ID of resource.
Request body
Example request
{
"title": "Meu título legal",
"description": "Minha descrição legal",
"payload": {
"url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
}
}Response
Sucesso de Retorno!
Example response
{
"message": "Ação realizada com sucesso!",
"data": {
"_id": "62e836aa50e11b6660718752",
"trigger": "trigger.hired.created",
"destination": "slach.channel",
"title": "Minha ação X",
"description": "Essa ação faz Y e depois envia para X",
"created_at": "01/08/2022",
"call": {
"title": "Título da ação",
"description": "Essa ação executa x coisa"
},
"action": {
"title": "Título da ação",
"description": "Essa ação executa x coisa",
"payload": [
{
"key": "url",
"rules": [
"required"
],
"placeholder": "Demo value",
"value": "value saved on database"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.