# הזמנה של משתמש שנפטר שוב

**URL:** <https://meta.discourse.org/t/invite-deleted-user-again/188105>\
**Category:** Bug\
**Created:** [26 באפריל,‏ 2021,‏ 5:30am UTC](https://meta.discourse.org/t/invite-deleted-user-again/188105 "2021-04-26T05:30:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![weallwegot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/weallwegot/32/124753_2.png) [@weallwegot](https://meta.discourse.org/u/weallwegot)\
**Post date:** [27 באפריל,‏ 2021,‏ 12:06am UTC](https://meta.discourse.org/t/invite-deleted-user-again/188105/7 "2021-04-27T00:06:16Z")

</div>

Oooh got it this is clear now - yea, this I’m able to reproduce now.

I’m able to send regular invites to brand new emails from the API with a post request:  
I get the following response as expected:

**REQUEST:** `https://example.dev/invites.json?email=example%2Bsomething@hey.com`  
**ACTUAL RESPONSE**

```plaintext
{
    "id": 7,
    "invite_key": "inviteKEY",
    "link": "https://example.dev/invites/inviteKEY",
    "email": "example+something@hey.com",
    "emailed": true,
    "custom_message": null,
    "created_at": "2021-04-26T23:57:08.602Z",
    "updated_at": "2021-04-26T23:57:08.602Z",
    "expires_at": "2021-05-26T23:57:08.594Z",
    "expired": false,
    "topics": [],
    "groups": []
}

```

- then I log in elsewhere and accept the invite for that user.
- then i log back in as the admin & delete the user with email: [example+something@hey.com](mailto:example+something@hey.com)
- next I re-send the same POST request to the API to invite that user again

**REQUEST:** `https://example.dev/invites.json?email=example%2Bsomething@hey.com`  
**EXPECTED RESPONSE**

```plaintext
{
    "id": 8,
    "invite_key": "newinviteKEY",
    "link": "https://example.dev/invites/newinviteKEY",
    "email": "example+something@hey.com",
    "emailed": true,
    "custom_message": null,
    "created_at": "2021-04-26T23:59:08.602Z",
    "updated_at": "2021-04-26T23:59:08.602Z",
    "expires_at": "2021-05-26T23:59:08.594Z",
    "expired": false,
    "topics": [],
    "groups": []
}

```

**ACTUAL RESPONSE**

```plaintext
{
    "failed": "FAILED"
}

```

---

_[View the full topic](https://meta.discourse.org/t/invite-deleted-user-again/188105)._
