Skip to content

Commit 22e4120

Browse files
authored
Add notice for "createdAt" key in API (#1091)
* Add createdAt exception * Try to make it more visible * cleanup * cleanup * some tries for formatting
1 parent 7679ff8 commit 22e4120

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/hub/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Try it out now on our [Playground](https://huggingface.co/spaces/enzostvs/hub-ap
1717

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

20+
<Tip>
21+
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.
22+
</Tip>
23+
2024
### GET /api/models
2125

2226
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.

0 commit comments

Comments
 (0)