Repositories
Create repository
Create a new repository, optionally with initial files via JSON or multipart form.
post/api/repos
Request
- Base URLhttps://hub.oxen.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"root_commit": {
"author": "ox",
"email": "ox@example.com",
"id": "a1b2c3d4e5f67890abcdef1234567890",
"message": "Refactor data loading pipeline.",
"parent_ids": [
"f1e2d3c4b5a67890fedcba9876543210"
],
"timestamp": "2025-01-01T10:00:00Z"
}
}Response
Repository created
Example response
{
"repository": {
"latest_commit": {
"author": "ox",
"email": "ox@example.com",
"id": "a1b2c3d4e5f678902e41",
"message": "Initial dataset import.",
"parent_ids": [
"f1e2d3c4b5a67890fedc"
],
"timestamp": "2025-01-01T10:00:00Z"
},
"name": "ImageNet-1k",
"namespace": "ox"
},
"status": "success",
"status_message": "resource_created"
}Changes
No recorded changes to this operation across all 1 revision of this API.