# Specify User in POST request

**URL:** https://meta.discourse.org/t/specify-user-in-post-request/225426
**Category:** Development
**Tags:** rest-api
**Created:** [April 27, 2022, 12:44pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426 "2022-04-27T12:44:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![muratgozel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/muratgozel/32/258188_2.png) [@muratgozel](https://meta.discourse.org/u/muratgozel)
#### Post date: [April 27, 2022, 12:44pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426/1 "2022-04-27T12:44:57Z")

</div>

Hi everyone,

I wonder if there is a possibility to specify a user while sending the post request. I want to create a topic/post on behalf of another user.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 27, 2022, 1:23pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426/2 "2022-04-27T13:23:39Z")

</div>

Hello and welcome @muratgozel 🙂

There’s a solution to a similar question in this topic if that helps:

> [@With Api how do you create topics and posts so owned by particular user](https://meta.discourse.org/t/with-api-how-do-you-create-topics-and-posts-so-owned-by-particular-user/138235/3):
>
> Set the `Api-Username` to the username that you want to publish the post. Use the All Users API key for the `Api-Key` .

---

<div class="post-metadata">

### Author: ![muratgozel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/muratgozel/32/258188_2.png) [@muratgozel](https://meta.discourse.org/u/muratgozel)
#### Post date: [April 27, 2022, 2:14pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426/3 "2022-04-27T14:14:02Z")

</div>

Just how I imagined, thank you 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 27, 2022, 2:14pm UTC](https://meta.discourse.org/t/specify-user-in-post-request/225426/4 "2022-05-27T14:14:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
