Create one immutable manual-edit 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-revisions/manual-edit"), Content = new StringContent("{ \"BaseRevisionId\": \"example\", \"BaseSourceChecksum\": \"example\", \"Comment\": \"example\", \"Changes\": [ { \"Operation\": 0, \"Path\": \"example\", \"NewPath\": \"example\", \"ContentUtf8\": \"example\", \"ExpectedContentHash\": \"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-revisions/manual-edit';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"BaseRevisionId":"example","BaseSourceChecksum":"example","Comment":"example","Changes":[{"Operation":0,"Path":"example","NewPath":"example","ContentUtf8":"example","ExpectedContentHash":"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-revisions/manual-edit \ --header 'Content-Type: application/json' \ --data '{ "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Comment": "example", "Changes": [ { "Operation": 0, "Path": "example", "NewPath": "example", "ContentUtf8": "example", "ExpectedContentHash": "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”Create an immutable manual-edit Workspace UI source revision.
object
Working revision on which the edit is based.
Expected checksum of the base revision.
Optional revision comment.
Source-file changes to apply to the base revision.
One source-file change for an immutable Workspace UI revision.
object
Existing or target normalized relative project path.
New normalized relative project path for a rename.
UTF-8 text content for an upsert.
Expected SHA-256 hash of the existing file.
Create an immutable manual-edit Workspace UI source revision.
object
Working revision on which the edit is based.
Expected checksum of the base revision.
Optional revision comment.
Source-file changes to apply to the base revision.
One source-file change for an immutable Workspace UI revision.
object
Existing or target normalized relative project path.
New normalized relative project path for a rename.
UTF-8 text content for an upsert.
Expected SHA-256 hash of the existing file.
Create an immutable manual-edit Workspace UI source revision.
object
Working revision on which the edit is based.
Expected checksum of the base revision.
Optional revision comment.
Source-file changes to apply to the base revision.
One source-file change for an immutable Workspace UI revision.
object
Existing or target normalized relative project path.
New normalized relative project path for a rename.
UTF-8 text content for an upsert.
Expected SHA-256 hash of the existing file.
Responses
Section titled “Responses”OK
object
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": { "SourceKind": 0, "Status": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
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": { "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
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": { "SourceKind": 0, "Status": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}