# 「undo change timestamp」カスタム rake タスクの使い方は？

**URL:** <https://meta.discourse.org/t/how-to-use-undo-change-timestamp-custom-rake-task/309450>\
**Category:** Development\
**Created:** [2024 年 5 月 26 日午前 9:47 UTC](https://meta.discourse.org/t/how-to-use-undo-change-timestamp-custom-rake-task/309450 "2024-05-26T09:47:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2024 年 5 月 26 日午後 12:43 UTC](https://meta.discourse.org/t/how-to-use-undo-change-timestamp-custom-rake-task/309450/4 "2024-05-26T12:43:08Z")

</div>

> [@Dotila\_Li](#):
>
> ```plaintext
> headers: {
> "Content-Type": "application/json",
> "Api-Key": DISCOURSE_API_KEY,
> "Api-Username": API_USERNAME,
> body: JSON.stringify(payload),
> },
> 
> ```

`body` を `headers` の中に配置しています。これはヘッダーではなくオプションです。以下のドキュメントを参照してください。

> **[Using the Fetch API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options)**
>
> The Fetch API provides a JavaScript interface for making HTTP requests and processing the responses.

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-undo-change-timestamp-custom-rake-task/309450)._
