Skip to main content
PUT
/
api
/
svc
/
v1
/
ml-repos
Create or Update MLRepo
curl --request PUT \
  --url https://{controlPlaneURL}/api/svc/v1/ml-repos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "manifest": {
    "type": "ml-repo",
    "name": "<string>",
    "storage_integration_fqn": "<string>",
    "collaborators": [
      {
        "subject": "<string>",
        "role_id": "<string>"
      }
    ],
    "description": "<string>"
  },
  "dryRun": false
}
'
{
  "data": {
    "tenant_name": "truefoundry",
    "manifest": {
      "name": "devtest-finetuning-test-420",
      "type": "ml-repo",
      "description": "This is a test MLRepo for fine-tuning experiments.",
      "collaborators": [
        {
          "role_id": "mlf-project-admin",
          "subject": "user:user1@example.com"
        },
        {
          "role_id": "mlf-project-admin",
          "subject": "team:teamb"
        }
      ],
      "storage_integration_fqn": "truefoundry:aws:aws-4:blob-storage:devtest-test-1"
    },
    "created_by_subject": {
      "subjectId": "cm1xxxp",
      "subjectSlug": "test-user@truefoundry.com",
      "subjectType": "user",
      "subjectDisplayName": "Test User"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "account_id": "<string>",
    "id": "420",
    "num_runs": 10,
    "artifact_type_counts": {},
    "datasets_count": 10
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
manifest
MLRepoManifest · object
required

MLRepo manifest

dryRun
boolean
default:false

Validate the manifest and collaborators without persisting changes or updating artifact location in the database

Response

Returns the created or updated MLRepo entity based on the provided manifest.

data
MLRepo · object
required

ML Repo