Skip to main content
PUT
/
api
/
svc
/
v1
/
apply
Create or Update Resources
curl --request PUT \
  --url https://{controlPlaneURL}/api/svc/v1/apply \
  --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>",
    "ownedBy": {
      "account": "<string>"
    }
  },
  "dryRun": true
}
'
{
  "existingManifest": {
    "type": "ml-repo",
    "name": "<string>",
    "storage_integration_fqn": "<string>",
    "collaborators": [
      {
        "subject": "<string>",
        "role_id": "<string>"
      }
    ],
    "description": "<string>",
    "ownedBy": {
      "account": "<string>"
    }
  },
  "action": "CREATE",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json
manifest
required

manifest of the resource to be created or updated

dryRun
boolean

Dry run the apply operation without actually applying

Response

200 - application/json

The resource has been successfully created or updated.

existingManifest

The existing manifest of the resource

action
enum<string>

The action performed: CREATE or UPDATE

Available options:
CREATE,
UPDATE
data
object

The created or updated resource