Upsource API Documentation
Index
Messages
View as JSON
Removed branch in project
Field | Type | Label | Description |
name | string | required | Branch name |
Discussion event
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
notificationReason | NotificationReason | required | Notification reason |
discussionId | string | required | Discussion ID |
commentId | string | optional | Comment ID |
isEdit | bool | optional | Whether the event corresponds to comment editing |
resolveAction | bool | optional | Indicates a change of the discussion's resolved status: true for resolve, false for un-resolve |
commentText | string | optional | Comment text |
isDeletion | bool | optional | Whether the event corresponds to comment deletion |
projectId | string | optional | Anchor data for event |
revisionId | string | optional | Anchor data for event |
fileName | string | optional | Anchor data for event |
Base event details included in all other events
Field | Type | Label | Description |
userId | UserIdBean | optional | User that initiated the event |
userIds | UserIdBean | repeated | List of users that will receive the event in their feeds |
reviewNumber | int32 | optional | Associated review number |
reviewId | string | optional | Associated review ID |
date | int64 | required | Event date |
actor | UserIdBean | required | User that initiated the event |
feedEventId | string | optional | Event ID |
Merged changes to default branch
Field | Type | Label | Description |
commitsCount | int32 | required | Number of commits merged |
branches | string | repeated | List of merged branches |
New branch in project
Field | Type | Label | Description |
name | string | required | Branch name |
Participant added to review
New revision in project
Field | Type | Label | Description |
revisionId | string | required | Revision ID |
branches | string | repeated | List of branches |
author | string | optional | Author ID |
message | string | optional | Commit message |
date | int64 | optional | Commit date |
Review participant state changed
Pull request merged
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
pullRequest | string | required | Branch name |
Reaction added or removed
Field | Type | Label | Description |
discussionId | string | required | Discussion ID |
commentId | string | required | Comment ID |
reactionId | string | required | Reaction ID |
wasAdded | bool | required | Whether the reaction was added or removed |
actor | UserIdBean | required | User who toggled reaction |
Participant removed from review
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
participant | UserIdBean | required | Participant user info |
formerRole | ParticipantRole | required | The role participant had before being removed from review |
Review created
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
revisions | string | repeated | List of revisions that were added to review at time of creation |
branch | string | optional | Name of the branch being tracked by the review |
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
deadline | int64 | optional | Review due date (Unix timestamp) |
Review label added or removed
Field | Type | Label | Description |
reviewId | string | required | Review ID |
labelId | string | required | Label ID |
labelName | string | required | Label name |
wasAdded | bool | required | Whether the label was added or removed |
actor | UserIdBean | required | User who changed label |
Review removed
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
reviewId | string | required | Review ID |
Review squashed to revision
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
revisionId | string | required | Target Revision ID |
Branch tracking stopped for review
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
branch | string | required | Branch name |
Revision added to review
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
revisionId | string | optional | Revision ID (deprecated) |
revisionIds | string | repeated | List of revision IDs |
Revision removed from review
Field | Type | Label | Description |
base | FeedEventBean | required | Base feed event |
revisionIds | string | repeated | List of revision IDs |
User info
Field | Type | Label | Description |
userId | string | optional | |
userName | string | optional | |
userEmail | string | optional | |
Enums
View as JSON
Reason feed event appears in someone's feed
Name | Number | Description |
Unknown |
0 |
|
CommentInAuthorFeed |
1 |
|
NotifyCommitAuthor |
2 |
|
Mention |
3 |
|
HashTagSubscription |
4 |
|
DiscussionIsStarred |
5 |
|
ParticipatedInDiscussion |
6 |
|
ParticipatedInReview |
7 |
|
Reply |
8 |
|
Review participant role
Name | Number | Description |
Author |
1 |
|
Reviewer |
2 |
|
Watcher |
3 |
|
Review participant state
Name | Number | Description |
Unread |
0 |
|
Read |
1 |
|
Accepted |
2 |
|
Rejected |
3 |
|
Review state
Name | Number | Description |
Open |
0 |
|
Closed |
1 |
|