Skip to content

Roll back to one compatible previously published Workspace UI artifact.

POST
/api/workspace/admin/ui-project/artifacts/{artifactId}/rollback
curl --request POST \
--url https://example.com/api/workspace/admin/ui-project/artifacts/example/rollback \
--header 'Content-Type: application/json' \
--data '{ "ExpectedProjectRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ExpectedArtifactRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
  • None
artifactId
required
string
access_token
string

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

Change a Workspace UI artifact publication state with optimistic concurrency.

object
ExpectedProjectRowVersion

Expected project concurrency token.

string format: uuid
ExpectedArtifactRowVersion

Expected artifact concurrency token.

string format: uuid
Examplegenerated
{
"ExpectedProjectRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"ExpectedArtifactRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

OK

Media typeapplication/json
object
Data

Result of a Workspace UI artifact lifecycle state change.

object
Artifact

Immutable Workspace UI runtime artifact metadata.

object
Id

Artifact identifier.

string
nullable
ProjectId

Workspace UI project identifier.

string
nullable
BuildId

Successful build that produced the artifact.

string
nullable
RevisionId

Source revision used by the build.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
IsActive

Whether this artifact is active.

boolean
AssetsAvailable

Whether JavaScript and CSS bytes remain stored.

boolean
AssetsPurgedAt

Asset purge timestamp.

string format: date-time
nullable
ArtifactHash

Combined JavaScript/CSS SHA-256 hash.

string
nullable
JavaScriptContentHash

JavaScript SHA-256 content hash.

string
nullable
JavaScriptIntegrity

JavaScript SHA-256 integrity value.

string
nullable
JavaScriptSizeBytes

JavaScript size in bytes.

integer format: int64
CssContentHash

CSS SHA-256 content hash.

string
nullable
CssIntegrity

CSS SHA-256 integrity value.

string
nullable
CssSizeBytes

CSS size in bytes.

integer format: int64
TotalSizeBytes

Combined JavaScript and CSS size.

integer format: int64
PageDescriptorJson

Validated page descriptors.

string
nullable
LocaleDescriptorJson

Validated locale descriptors.

string
nullable
DependencyMetadataJson

Pinned dependency and toolchain metadata.

string
nullable
WebAppVersion

Moltaro WebApp version used by the build.

string
nullable
HostContractVersion

Workspace UI host contract version.

integer format: int32
VueVersion

Vue version.

string
nullable
PiniaVersion

Pinia version.

string
nullable
VuetifyVersion

Vuetify version.

string
nullable
ViteVersion

Vite version.

string
nullable
TypeScriptVersion

TypeScript version.

string
nullable
EslintVersion

ESLint version.

string
nullable
ToolchainFingerprint

Resolved toolchain fingerprint.

string
nullable
PublishedByUserId

Publishing user identifier.

string
nullable
PublishedAt

Publication timestamp.

string format: date-time
nullable
DeactivatedByUserId

Deactivating user identifier.

string
nullable
DeactivatedAt

Deactivation timestamp.

string format: date-time
nullable
RowVersion

Concurrency token.

string format: uuid
ProjectRowVersion

New project concurrency token.

string format: uuid
RefreshRequired

Whether an already-open application must be fully refreshed.

boolean
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": {
"Artifact": {
"Status": 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"
}

Not Found

Media typeapplication/json
object
Data

Result of a Workspace UI artifact lifecycle state change.

object
Artifact

Immutable Workspace UI runtime artifact metadata.

object
Id

Artifact identifier.

string
nullable
ProjectId

Workspace UI project identifier.

string
nullable
BuildId

Successful build that produced the artifact.

string
nullable
RevisionId

Source revision used by the build.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
IsActive

Whether this artifact is active.

boolean
AssetsAvailable

Whether JavaScript and CSS bytes remain stored.

boolean
AssetsPurgedAt

Asset purge timestamp.

string format: date-time
nullable
ArtifactHash

Combined JavaScript/CSS SHA-256 hash.

string
nullable
JavaScriptContentHash

JavaScript SHA-256 content hash.

string
nullable
JavaScriptIntegrity

JavaScript SHA-256 integrity value.

string
nullable
JavaScriptSizeBytes

JavaScript size in bytes.

integer format: int64
CssContentHash

CSS SHA-256 content hash.

string
nullable
CssIntegrity

CSS SHA-256 integrity value.

string
nullable
CssSizeBytes

CSS size in bytes.

integer format: int64
TotalSizeBytes

Combined JavaScript and CSS size.

integer format: int64
PageDescriptorJson

Validated page descriptors.

string
nullable
LocaleDescriptorJson

Validated locale descriptors.

string
nullable
DependencyMetadataJson

Pinned dependency and toolchain metadata.

string
nullable
WebAppVersion

Moltaro WebApp version used by the build.

string
nullable
HostContractVersion

Workspace UI host contract version.

integer format: int32
VueVersion

Vue version.

string
nullable
PiniaVersion

Pinia version.

string
nullable
VuetifyVersion

Vuetify version.

string
nullable
ViteVersion

Vite version.

string
nullable
TypeScriptVersion

TypeScript version.

string
nullable
EslintVersion

ESLint version.

string
nullable
ToolchainFingerprint

Resolved toolchain fingerprint.

string
nullable
PublishedByUserId

Publishing user identifier.

string
nullable
PublishedAt

Publication timestamp.

string format: date-time
nullable
DeactivatedByUserId

Deactivating user identifier.

string
nullable
DeactivatedAt

Deactivation timestamp.

string format: date-time
nullable
RowVersion

Concurrency token.

string format: uuid
ProjectRowVersion

New project concurrency token.

string format: uuid
RefreshRequired

Whether an already-open application must be fully refreshed.

boolean
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": {
"Artifact": {
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Conflict

Media typeapplication/json
object
Data

Result of a Workspace UI artifact lifecycle state change.

object
Artifact

Immutable Workspace UI runtime artifact metadata.

object
Id

Artifact identifier.

string
nullable
ProjectId

Workspace UI project identifier.

string
nullable
BuildId

Successful build that produced the artifact.

string
nullable
RevisionId

Source revision used by the build.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
IsActive

Whether this artifact is active.

boolean
AssetsAvailable

Whether JavaScript and CSS bytes remain stored.

boolean
AssetsPurgedAt

Asset purge timestamp.

string format: date-time
nullable
ArtifactHash

Combined JavaScript/CSS SHA-256 hash.

string
nullable
JavaScriptContentHash

JavaScript SHA-256 content hash.

string
nullable
JavaScriptIntegrity

JavaScript SHA-256 integrity value.

string
nullable
JavaScriptSizeBytes

JavaScript size in bytes.

integer format: int64
CssContentHash

CSS SHA-256 content hash.

string
nullable
CssIntegrity

CSS SHA-256 integrity value.

string
nullable
CssSizeBytes

CSS size in bytes.

integer format: int64
TotalSizeBytes

Combined JavaScript and CSS size.

integer format: int64
PageDescriptorJson

Validated page descriptors.

string
nullable
LocaleDescriptorJson

Validated locale descriptors.

string
nullable
DependencyMetadataJson

Pinned dependency and toolchain metadata.

string
nullable
WebAppVersion

Moltaro WebApp version used by the build.

string
nullable
HostContractVersion

Workspace UI host contract version.

integer format: int32
VueVersion

Vue version.

string
nullable
PiniaVersion

Pinia version.

string
nullable
VuetifyVersion

Vuetify version.

string
nullable
ViteVersion

Vite version.

string
nullable
TypeScriptVersion

TypeScript version.

string
nullable
EslintVersion

ESLint version.

string
nullable
ToolchainFingerprint

Resolved toolchain fingerprint.

string
nullable
PublishedByUserId

Publishing user identifier.

string
nullable
PublishedAt

Publication timestamp.

string format: date-time
nullable
DeactivatedByUserId

Deactivating user identifier.

string
nullable
DeactivatedAt

Deactivation timestamp.

string format: date-time
nullable
RowVersion

Concurrency token.

string format: uuid
ProjectRowVersion

New project concurrency token.

string format: uuid
RefreshRequired

Whether an already-open application must be fully refreshed.

boolean
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": {
"Artifact": {
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}