# Curl מדווח על יצירת משתמש, אך זה לא באמת עבד

**URL:** <https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119>\
**Category:** Product Support\
**Created:** [23 במרץ,‏ 2023,‏ 7:04am UTC](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119 "2023-03-23T07:04:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)\
**Post date:** [23 במרץ,‏ 2023,‏ 7:04am UTC](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119/1 "2023-03-23T07:04:22Z")

</div>

I’ve been working on a process to import users, and am getting close. I’m getting a response from curl saying it sent an invite, but no email was sent and as far as I can tell no invite was logged in the database.

Here’s the curl command:

curl -X POST -H “Content-Type: multipart/form-data;” -H “api-key=secret” -H “api-username=system” -F “username=1002-nolan” -F “[email=mnolan@tssi.com](mailto:email=mnolan@tssi.com)” -F “password=secret” -F “name=Mike Nolan” -F “staged=true” -F “active=true” -F “approved=true” “[https://mysite/users.json/](https://mysite/users.json/)”

Here’s the response:

“success”:true,“active”:false,“message”:“\u003cp\u003eYou’re almost done! We sent an activation mail to \u003cb\u003emnolan@tssi.com\u003c/b\u003e. Please follow the instructions in the mail to activate your account.\u003c/p\u003e\u003cp\u003eIf it doesn’t arrive, check your spam folder.\u003c/p\u003e”}

Also, I thought setting active=true would avoid sending a confirmation email.

---

_[View the full topic](https://meta.discourse.org/t/curl-reports-user-created-but-it-didnt-really-work/259119)._
