Skip to content

Validate and store a .NET package bundle, returning a UI-readable metadata plan.

POST
/api/workspace/admin/net-packages/packages/plan
curl --request POST \
--url https://example.com/api/workspace/admin/net-packages/packages/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

Media typemultipart/form-data
object
file
string format: binary

OK

Media typeapplication/json
object
Data

Validated .NET package plan returned before apply.

object
PackageId

Stored package artifact identifier used by apply/download endpoints.

string
nullable
StablePackageId

Stable Moltaro .NET package identifier.

string
nullable
PackageName

Optional package display name.

string
nullable
FileName

Uploaded DLL file name.

string
nullable
Format
integer format: int32
Allowed values: 0 1
EntryAssemblyFileName

Entry assembly file name inside the package bundle.

string
nullable
PackageVersion

Package bundle version from moltaro-package.json.

string
nullable
Sha256Hash

Package SHA-256 hash.

string
nullable
AssemblyName

Loaded assembly name.

string
nullable
AssemblyVersion

Loaded identity assembly version.

string
nullable
ContextTypeName

Moltaro DbContext type name.

string
nullable
MigrationHistoryTable

Per-package EF migration history table.

string
nullable
Summary

Aggregated .NET package plan counts.

object
CreateCount

Number of metadata items that will be created.

integer format: int32
UpdateCount

Number of metadata items that will be updated.

integer format: int32
DeleteCount

Number of metadata items that will be deleted or marked deleted.

integer format: int32
NoChangeCount

Number of metadata items that already match the package.

integer format: int32
Items

UI-readable metadata diff items.

Array<object>
nullable

One metadata diff item in a .NET package plan.

object
ItemType

Metadata item type, e.g. entity, table, field, statement, or presentationRule.

string
nullable
StableId

Package-owned stable Moltaro ID.

string
nullable
Name

Internal item name/key.

string
nullable
DisplayName

Optional UI display name.

string
nullable
Action
integer format: int32
Allowed values: 0 1 2 3
Children
Array<object> recursive
UploadedAt

Artifact upload timestamp.

string format: date-time
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Format": 0,
"Items": [
{
"Action": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data

Validated .NET package plan returned before apply.

object
PackageId

Stored package artifact identifier used by apply/download endpoints.

string
nullable
StablePackageId

Stable Moltaro .NET package identifier.

string
nullable
PackageName

Optional package display name.

string
nullable
FileName

Uploaded DLL file name.

string
nullable
Format
integer format: int32
Allowed values: 0 1
EntryAssemblyFileName

Entry assembly file name inside the package bundle.

string
nullable
PackageVersion

Package bundle version from moltaro-package.json.

string
nullable
Sha256Hash

Package SHA-256 hash.

string
nullable
AssemblyName

Loaded assembly name.

string
nullable
AssemblyVersion

Loaded identity assembly version.

string
nullable
ContextTypeName

Moltaro DbContext type name.

string
nullable
MigrationHistoryTable

Per-package EF migration history table.

string
nullable
Summary

Aggregated .NET package plan counts.

object
CreateCount

Number of metadata items that will be created.

integer format: int32
UpdateCount

Number of metadata items that will be updated.

integer format: int32
DeleteCount

Number of metadata items that will be deleted or marked deleted.

integer format: int32
NoChangeCount

Number of metadata items that already match the package.

integer format: int32
Items

UI-readable metadata diff items.

Array<object>
nullable

One metadata diff item in a .NET package plan.

object
ItemType

Metadata item type, e.g. entity, table, field, statement, or presentationRule.

string
nullable
StableId

Package-owned stable Moltaro ID.

string
nullable
Name

Internal item name/key.

string
nullable
DisplayName

Optional UI display name.

string
nullable
Action
integer format: int32
Allowed values: 0 1 2 3
Children
Array<object> recursive
UploadedAt

Artifact upload timestamp.

string format: date-time
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Format": 0,
"Items": [
{
"Action": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Conflict

Media typeapplication/json
object
Data

Validated .NET package plan returned before apply.

object
PackageId

Stored package artifact identifier used by apply/download endpoints.

string
nullable
StablePackageId

Stable Moltaro .NET package identifier.

string
nullable
PackageName

Optional package display name.

string
nullable
FileName

Uploaded DLL file name.

string
nullable
Format
integer format: int32
Allowed values: 0 1
EntryAssemblyFileName

Entry assembly file name inside the package bundle.

string
nullable
PackageVersion

Package bundle version from moltaro-package.json.

string
nullable
Sha256Hash

Package SHA-256 hash.

string
nullable
AssemblyName

Loaded assembly name.

string
nullable
AssemblyVersion

Loaded identity assembly version.

string
nullable
ContextTypeName

Moltaro DbContext type name.

string
nullable
MigrationHistoryTable

Per-package EF migration history table.

string
nullable
Summary

Aggregated .NET package plan counts.

object
CreateCount

Number of metadata items that will be created.

integer format: int32
UpdateCount

Number of metadata items that will be updated.

integer format: int32
DeleteCount

Number of metadata items that will be deleted or marked deleted.

integer format: int32
NoChangeCount

Number of metadata items that already match the package.

integer format: int32
Items

UI-readable metadata diff items.

Array<object>
nullable

One metadata diff item in a .NET package plan.

object
ItemType

Metadata item type, e.g. entity, table, field, statement, or presentationRule.

string
nullable
StableId

Package-owned stable Moltaro ID.

string
nullable
Name

Internal item name/key.

string
nullable
DisplayName

Optional UI display name.

string
nullable
Action
integer format: int32
Allowed values: 0 1 2 3
Children
Array<object> recursive
UploadedAt

Artifact upload timestamp.

string format: date-time
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Format": 0,
"Items": [
{
"Action": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}