---
title: "POST /users/me/vouchers/"
method: POST
path: "/users/me/vouchers/"
tags: ["users"]
---

# POST /users/me/vouchers/

`POST /users/me/vouchers/`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `http://127.0.0.1:8000/o/token/` scopes: `read write groups`

The logged-in user give a voucher to the target user.

## Request body

- GivenVoucherRequest: A voucher given by the logged-in user to a target user. As the public status of the voucher is displayed, this serializer shouldn't be used to list the vouchers not related to the logged-in user. Prefer `PublicGivenVoucherSerializer` instead.
  - `to` string, required

## Response `201`

- GivenVoucher: A voucher given by the logged-in user to a target user. As the public status of the voucher is displayed, this serializer shouldn't be used to list the vouchers not related to the logged-in user. Prefer `PublicGivenVoucherSerializer` instead.
  - `by` string, required
  - `to` string, required

## Changes

- **2022-09-19** `a8325cd49c4c`: 8 warning
  - removed the request property `is_public` (media type: application/json)
  - removed the request property `is_public` (media type: application/x-www-form-urlencoded)
  - removed the request property `is_public` (media type: multipart/form-data)
  - removed the request property `value` (media type: application/json)
  - …4 more
- **2022-08-30** `ce9efa7b176f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tournesol-app/apis/tournesol-api/changes/users/me/vouchers/post.md)

---

[API](https://skmtc.dev/tournesol-app/apis/tournesol-api.md) - [All operations](https://skmtc.dev/tournesol-app/apis/tournesol-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tournesol-app/apis/tournesol-api/revisions/96c8c62ad972?raw)
