Init
This commit is contained in:
93
backend/artifacts/automation/activity-automation.http
Normal file
93
backend/artifacts/automation/activity-automation.http
Normal file
@@ -0,0 +1,93 @@
|
||||
### Create automation with activity action
|
||||
|
||||
POST {{url}}/api/automation/automations
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "create_activity",
|
||||
"delay": 300,
|
||||
"settings": {
|
||||
"responsibleUserType": "custom",
|
||||
"responsibleUserId": {{userId}},
|
||||
"activityTypeId": {{activityTypeId}},
|
||||
"text": "some-text",
|
||||
"deadlineType": "immediately",
|
||||
"deadlineTime": null
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"type": "responsible_user",
|
||||
"settings": {
|
||||
"userIds": [{{userId}}]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"settings": {
|
||||
"fieldId": {{budgetFieldId}},
|
||||
"fieldType": "value",
|
||||
"payload": {
|
||||
"from": 100,
|
||||
"to": 200
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### Update automation with activity action
|
||||
|
||||
PUT {{url}}/api/automation/automations/{{activityAutomationId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "create_activity",
|
||||
"delay": 300,
|
||||
"settings": {
|
||||
"responsibleUserType": "custom",
|
||||
"responsibleUserId": {{userId}},
|
||||
"activityTypeId": {{activityTypeId}},
|
||||
"text": "test",
|
||||
"deadlineType": "immediately",
|
||||
"deadlineTime": null
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"type": "responsible_user",
|
||||
"settings": {
|
||||
"userIds": [{{userId}}]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"settings": {
|
||||
"fieldId": {{budgetFieldId}},
|
||||
"fieldType": "value",
|
||||
"payload": {
|
||||
"from": 100,
|
||||
"to": 200
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
11
backend/artifacts/automation/automation.http
Normal file
11
backend/artifacts/automation/automation.http
Normal file
@@ -0,0 +1,11 @@
|
||||
### Get automations
|
||||
|
||||
GET {{url}}/api/automation/board/{{boardId}}/automations
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Delete automation
|
||||
|
||||
DELETE {{url}}/api/automation/automations/51011020
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
47
backend/artifacts/automation/change-stage-automation.http
Normal file
47
backend/artifacts/automation/change-stage-automation.http
Normal file
@@ -0,0 +1,47 @@
|
||||
### Create automation with task action
|
||||
|
||||
POST {{url}}/api/automation/automations
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "change_stage",
|
||||
"delay": null,
|
||||
"settings": {
|
||||
"stageId": {{stageId}}
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": []
|
||||
}
|
||||
|
||||
### Update automation with task action
|
||||
|
||||
PUT {{url}}/api/automation/automations/{{changeStageAutomationId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "change_stage",
|
||||
"delay": 300,
|
||||
"settings": {
|
||||
"stageId": {{stageId}}
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": []
|
||||
}
|
||||
63
backend/artifacts/automation/email-automation.http
Normal file
63
backend/artifacts/automation/email-automation.http
Normal file
@@ -0,0 +1,63 @@
|
||||
### Create automation with email action
|
||||
|
||||
POST {{url}}/api/automation/automations
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "send_email",
|
||||
"delay": null,
|
||||
"settings": {
|
||||
"subject": "email subject",
|
||||
"content": "email body",
|
||||
"signature": "some signature",
|
||||
"sendAsHtml": false,
|
||||
"mailboxId": 27023020,
|
||||
"userId": {{userId}},
|
||||
"fileIds": []
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": [],
|
||||
"isActive": true,
|
||||
"applyTrigger": false
|
||||
}
|
||||
|
||||
### Update automation with email action
|
||||
|
||||
PUT {{url}}/api/automation/automations/{{emailAutomationId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "send_email",
|
||||
"delay": null,
|
||||
"settings": {
|
||||
"subject": "email subject",
|
||||
"content": "email body",
|
||||
"signature": "new signature",
|
||||
"sendAsHtml": false,
|
||||
"mailboxId": 27023020,
|
||||
"userId": {{userId}},
|
||||
"fileIds": []
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": [],
|
||||
"isActive": true,
|
||||
"applyTrigger": false
|
||||
}
|
||||
57
backend/artifacts/automation/task-automation.http
Normal file
57
backend/artifacts/automation/task-automation.http
Normal file
@@ -0,0 +1,57 @@
|
||||
### Create automation with task action
|
||||
|
||||
POST {{url}}/api/automation/automations
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_or_create_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "create_task",
|
||||
"delay": 300,
|
||||
"settings": {
|
||||
"responsibleUserType": "custom",
|
||||
"responsibleUserId": {{userId}},
|
||||
"title": "some-title",
|
||||
"text": "some-text",
|
||||
"deadlineType": "immediately",
|
||||
"deadlineTime": null
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": []
|
||||
}
|
||||
|
||||
### Update automation with task action
|
||||
|
||||
PUT {{url}}/api/automation/automations/{{taskAutomationId}}
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"trigger": {
|
||||
"type": "move_entity",
|
||||
"settings": null
|
||||
},
|
||||
"action": {
|
||||
"type": "create_task",
|
||||
"delay": 3000,
|
||||
"settings": {
|
||||
"responsibleUserType": "custom",
|
||||
"responsibleUserId": {{userId}},
|
||||
"title": "new-title",
|
||||
"text": "new-text",
|
||||
"deadlineType": "custom",
|
||||
"deadlineTime": 3000
|
||||
}
|
||||
},
|
||||
"stageIds": [
|
||||
{{stageId}}
|
||||
],
|
||||
"conditions": []
|
||||
}
|
||||
Reference in New Issue
Block a user