# New to API, 403 Errors

**URL:** <https://meta.discourse.org/t/new-to-api-403-errors/67841>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [10.Август.2017 22:06:11 UTC](https://meta.discourse.org/t/new-to-api-403-errors/67841 "2017-08-10T22:06:11Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [11.Август.2017 16:39:45 UTC](https://meta.discourse.org/t/new-to-api-403-errors/67841/10 "2017-08-11T16:39:45Z")

</div>

Do not specify a topic\_id when creating a topic:

```
curl -X POST "https://my.discourse.com/posts" \
-H "Content-Type: multipart/form-data;" \
-F "api_key=theGeneratedAPIKeyForanAdmin" \
-F "api_username=anAdmin" \
-F "title=This is an API created topic" \
-F "raw=This is the end of the world as we know it, and I feel fine."

```

When creating a group be sure to use the id of the group and not the name of the group and to use a PUT request:

```
curl -X PUT "https://my.discourse.com/groups/group_id/members.json" \
-H "Content-Type: multipart/form-data;" \
-F "api_key=theGeneratedAPIKeyForUserNamedanAdmin" \
-F "api_username=anAdmin" \
-F "usernames=newForumUser"

```

---

_[View the full topic](https://meta.discourse.org/t/new-to-api-403-errors/67841)._
