How to set up archiving through API interface

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

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?