PUT
/
api
/
svc
/
v1
/
ml-repos
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>",
    "description": "<string>",
    "storage_integration_fqn": "<string>",
    "collaborators": [
      {
        "subject": "<string>",
        "role_id": "<string>"
      }
    ]
  }
}'
{
  "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",
    "id": "420",
    "num_runs": 10,
    "artifact_type_counts": {},
    "datasets_count": 10
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
manifest
object
required

MLRepo manifest

Response

200
application/json
Returns the created or updated MLRepo entity based on the provided manifest.
data
object
required

ML Repo