# How to set up archiving through API interface

**URL:** <https://forum.gitea.com/t/how-to-set-up-archiving-through-api-interface/9162>\
**Category:** Gitea Usages\
**Created:** [May 19, 2024, 7:11am UTC](https://forum.gitea.com/t/how-to-set-up-archiving-through-api-interface/9162 "2024-05-19T07:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Z-just](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/z-just/32/4665_2.png) [@Z-just](https://forum.gitea.com/u/Z-just)\
**Post date:** [May 19, 2024, 7:11am UTC](https://forum.gitea.com/t/how-to-set-up-archiving-through-api-interface/9162/1 "2024-05-19T07:11:10Z")

</div>

I want to call the api to implement the archiving function, but I can’t find the relevant interface.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [June 24, 2024, 5:06pm UTC](https://forum.gitea.com/t/how-to-set-up-archiving-through-api-interface/9162/2 "2024-06-24T17:06:09Z")

</div>

Hi, Can you clarify the type of archiving you wish to do? Such as archiving a repo, to put it in read-only mode, to fetch an archive (zip, etc.) of the code, or something else?
