# 403 Error during multiple API calls

**URL:** <https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [April 17, 2020, 12:53pm UTC](https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346 "2020-04-17T12:53:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ragavan\_Pitchai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ragavan_pitchai/32/174569_2.png) [@Ragavan\_Pitchai](https://meta.discourse.org/u/Ragavan_Pitchai)\
**Post date:** [April 17, 2020, 12:53pm UTC](https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346/1 "2020-04-17T12:53:26Z")

</div>

We are using the following APIs to update and suspend users but we are getting 403 errors. Can you inform us what is the cause for this error. FYI, we are using API key of admin user.

Suspend API

```
`{{base_url}}/admin/users/316/suspend?api_key={{api_key}}&api_username={{api_username}}`

```

Request BODY

```
{
    "suspend_until": "3020-04-17",
    "reason": "inactive"
}

```

Response - 403 Forbidden

Email update

`{{base_url}}/users/{username}/preferences/email?api_key={{api_key}}&api_username={{api_username}}`

Request BODY

```
{
 "email": "discourse1@example.com"
}

```

Response - 403 Forbidden

---

_[View the full topic](https://meta.discourse.org/t/403-error-during-multiple-api-calls/148346)._
