Skip to content

Commit

Permalink
Add notice for "createdAt" key in API (#1091)
Browse files Browse the repository at this point in the history
* Add createdAt exception

* Try to make it more visible

* cleanup

* cleanup

* some tries for formatting
  • Loading branch information
Kakulukian authored Nov 9, 2023
1 parent 7679ff8 commit 22e4120
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/hub/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Try it out now on our [Playground](https://huggingface.co/spaces/enzostvs/hub-ap

The following endpoints help get information about models, datasets, Spaces, and metrics stored on the Hub.

<Tip>
When making API calls to retrieve information about repositories, the <code>createdAt</code> attribute indicates the time when the respective repository was created. It's important to note that there is a unique value, <code>2022-03-02T23:29:04.000Z</code> assigned to all repositories that were created before we began storing creation dates.
</Tip>

### GET /api/models

Get information from all models in the Hub. The response is paginated, use the [`Link` header](https://docs.github.com/en/rest/guides/using-pagination-in-the-rest-api?apiVersion=2022-11-28#link-header) to get the next pages. You can specify additional parameters to have more specific results.
Expand Down

0 comments on commit 22e4120

Please sign in to comment.