# Impossível criar proprietário de grupo com a API

**URL:** <https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631>\
**Category:** Migration\
**Tags:** rest-api\
**Created:** [Julho 24, 2023, 12:19pm UTC](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631 "2023-07-24T12:19:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![FLucas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/flucas/32/317231_2.png) [@FLucas](https://meta.discourse.org/u/FLucas)\
**Post date:** [Julho 24, 2023, 1:11pm UTC](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631/4 "2023-07-24T13:11:12Z")

</div>

Obrigado pela sua ajuda,

Graças ao seu exemplo, consegui criar meu grupo com todos os dados:

curl -X POST “[https://site-discourse/admin/groups.json](https://site-discourse/admin/groups.json)”   
-H “Content-Type: application/json”   
-H “Api-Key: api-key”   
-H “Api-Username: api-username”   
-d ‘{  
“group”: {  
“name”: “name”,  
“bio\_raw”: “bio\_raw”,  
“full\_name”: “full\_name”,  
“usernames”: “username1,unsaername2”,  
“owner\_usernames”: “owner\_username1,owner\_username2”  
}  
}’

Havia um problema estrutural na minha chamada de API!

Obrigado pela sua rápida resposta,

Frank Lucas

---

_[View the full topic](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631)._
