Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ body:
"user": "{{user_id}}"
}

order: 10000
scripts:
- type: afterResponse
code: |
var json_response = pm.response.json();
let cv = pm.environment;
cv.set("chat_participant_id", json_response.id);
language: text/javascript
order: 8000
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ body:
]
}

order: 5000
scripts:
- type: afterResponse
code: |
var json_response = pm.response.json();
let cv = pm.environment;
cv.set("chat_channel_id", json_response.id);
language: text/javascript
order: 2000
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ body:
"participant": "{{chat_participant_id}}"
}

order: 4000
order: 4000
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pathVariables:
- key: id
value: "{{chat_channel_id}}"

order: 9000
order: 11000
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pathVariables:
- key: chatMessageId
value: "{{chat_message_id}}"

order: 3000
order: 10000
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ queryParams:
limit: "25"
offset: "0"
sort: "created_at"
order: 7000
order: 6000
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pathVariables:
- key: participantId
value: "{{chat_participant_id}}"

order: 11000
order: 9000
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pathVariables:
- key: id
value: "{{chat_channel_id}}"

order: 8000
order: 7000
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ body:
"files": []
}

order: 2000
scripts:
- type: afterResponse
code: |
var json_response = pm.response.json();
let cv = pm.environment;
cv.set("chat_message_id", json_response.id);
language: text/javascript
order: 3000
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ body:
"name": "Dispatch Updates"
}

order: 6000
order: 5000
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ body:
{
"content": "Example comment",
"subject": {
"id": "{{subject_id}}",
"type": "{{subject_type}}"
"id": "{{organization_id}}",
"type": "company"
}
}

scripts:
- type: afterResponse
code: |
var json_response = pm.response.json();
let cv = pm.environment;
cv.set("comment_id", json_response.id);
language: text/javascript
order: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ body:
"path": "uploads"
}

scripts:
- type: afterResponse
code: |
var json_response = pm.response.json();
let cv = pm.environment;
cv.set("file_id", json_response.id);
language: text/javascript
order: 2000
Loading