# Bug MEET-555 - PATCH /api/v3/meetings/{id} — adding an already existing participant via _links.participants creates a duplicate entry

Project: Stream Meetings
Status: closed
URL: https://community.openproject.org/work_packages/MEET-555

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Meetings, API |
| Target versions | 17.6.0 |
| Observed in versions | 17.4.0 |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Yan Zubrytskyi |
| Accountable |  |
| Product manager |  |
| Developers | Mir Bhatia |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Title:** `PATCH /api/v3/meetings/{id}` — adding an already existing participant via `_links.participants` creates a duplicate entry

**Steps to reproduce:**

1.  Create a meeting with at least one participant (e.g. user with id `12`)
    
2.  Call `PATCH /api/v3/meetings/{meeting_id}` with the following body:  
    \`\`\`  
    {  
    &nbsp;&quot;lockVersion&quot;: 0,  
     &quot;\_links&quot;: {  
       &quot;participants&quot;: \[  
         { &quot;href&quot;: &quot;/api/v3/users/12&quot; }  
       \]  
     }  
    }  
    \`\`\`
    
3.  Repeat the exact same PATCH request
    
4.  Inspect `_embedded.participants` in the response
    

<br>

**What is the buggy behavior?**

1.  The API returns `200 OK`
    
2.  `_embedded.participants` now contains two identical entries for the same user (same `id`, same `name`, all fields identical)
    
3.  No deduplication or conflict error is returned
    

**What is the expected behavior?**

1.  If the user is already a participant, the API should either ignore the request or return a meaningful error
    
2.  `_embedded.participants` should never contain duplicate entries for the same user
    

**Environment information**

1.  **Browser:** N/A (reproduced via API client / Postman)
