Atomically apply a deterministic template as one immutable Workspace UI source revision.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/ui-project/source-templates/apply"), Content = new StringContent("{ \"Template\": { \"TemplateId\": \"example\", \"BaseRevisionId\": \"example\", \"BaseSourceChecksum\": \"example\", \"Key\": \"example\", \"DisplayName\": \"example\", \"Icon\": \"example\", \"Layout\": 0, \"RoutePath\": \"example\", \"FunctionKey\": \"example\" }, \"Comment\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/ui-project/source-templates/apply';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Template":{"TemplateId":"example","BaseRevisionId":"example","BaseSourceChecksum":"example","Key":"example","DisplayName":"example","Icon":"example","Layout":0,"RoutePath":"example","FunctionKey":"example"},"Comment":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/ui-project/source-templates/apply \ --header 'Content-Type: application/json' \ --data '{ "Template": { "TemplateId": "example", "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Key": "example", "DisplayName": "example", "Icon": "example", "Layout": 0, "RoutePath": "example", "FunctionKey": "example" }, "Comment": "example" }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Atomically apply a deterministic Workspace UI source template.
object
Generate a deterministic Workspace UI source-template preview.
object
Stable template identifier.
Working revision on which generation is based.
Expected checksum of the working revision.
Lowercase kebab-case page, component, store, or client key.
Human-readable title used in generated locale resources.
Optional MDI icon for a generated page manifest entry.
Optional strict relative route pattern. Page starters default to and require the named parameters :entityId and :instanceId.
Exact published C# function key used by command and background-function client templates.
Optional immutable revision comment.
Atomically apply a deterministic Workspace UI source template.
object
Generate a deterministic Workspace UI source-template preview.
object
Stable template identifier.
Working revision on which generation is based.
Expected checksum of the working revision.
Lowercase kebab-case page, component, store, or client key.
Human-readable title used in generated locale resources.
Optional MDI icon for a generated page manifest entry.
Optional strict relative route pattern. Page starters default to and require the named parameters :entityId and :instanceId.
Exact published C# function key used by command and background-function client templates.
Optional immutable revision comment.
Atomically apply a deterministic Workspace UI source template.
object
Generate a deterministic Workspace UI source-template preview.
object
Stable template identifier.
Working revision on which generation is based.
Expected checksum of the working revision.
Lowercase kebab-case page, component, store, or client key.
Human-readable title used in generated locale resources.
Optional MDI icon for a generated page manifest entry.
Optional strict relative route pattern. Page starters default to and require the named parameters :entityId and :instanceId.
Exact published C# function key used by command and background-function client templates.
Optional immutable revision comment.
Responses
Section titled “Responses”OK
object
Result of atomically applying a source template.
object
Applied stable template identifier.
Immutable Workspace UI source revision metadata.
object
Revision identifier.
Workspace UI project identifier.
Monotonic revision number.
Optional revision comment.
SHA-256 checksum of the canonical source tree.
Creation timestamp.
Creating user identifier.
Number of stored source files.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Result of atomically applying a source template.
object
Applied stable template identifier.
Immutable Workspace UI source revision metadata.
object
Revision identifier.
Workspace UI project identifier.
Monotonic revision number.
Optional revision comment.
SHA-256 checksum of the canonical source tree.
Creation timestamp.
Creating user identifier.
Number of stored source files.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Conflict
object
Result of atomically applying a source template.
object
Applied stable template identifier.
Immutable Workspace UI source revision metadata.
object
Revision identifier.
Workspace UI project identifier.
Monotonic revision number.
Optional revision comment.
SHA-256 checksum of the canonical source tree.
Creation timestamp.
Creating user identifier.
Number of stored source files.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}