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>",
    "description": "<string>",
    "storage_integration_fqn": "<string>",
    "collaborators": [
      {
        "subject": "<string>",
        "role_id": "<string>"
      }
    ],
    "ownedBy": {
      "account": "<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:[email protected]"
        },
        {
          "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": "[email protected]",
      "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
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
manifest
object
required

Response

data
object
required