Create a manual Net Operation Project source revision from package reference changes.
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/net-operation-project/source-package-references/manual-edit"), Content = new StringContent("{ \"BaseRevisionId\": \"example\", \"BaseSourceChecksum\": \"example\", \"Comment\": \"example\", \"PackageReferences\": [ { \"Include\": \"example\", \"Version\": \"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/net-operation-project/source-package-references/manual-edit';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"BaseRevisionId":"example","BaseSourceChecksum":"example","Comment":"example","PackageReferences":[{"Include":"example","Version":"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/net-operation-project/source-package-references/manual-edit \ --header 'Content-Type: application/json' \ --data '{ "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Comment": "example", "PackageReferences": [ { "Include": "example", "Version": "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”Request payload to create an immutable Net Operation Project revision from package reference changes.
object
Working revision the package reference edit was based on.
Source checksum of the base revision.
Optional revision comment.
Complete desired package reference set.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
Examplegenerated
{ "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Comment": "example", "PackageReferences": [ { "Include": "example", "Version": "example" } ]}Request payload to create an immutable Net Operation Project revision from package reference changes.
object
Working revision the package reference edit was based on.
Source checksum of the base revision.
Optional revision comment.
Complete desired package reference set.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
Examplegenerated
{ "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Comment": "example", "PackageReferences": [ { "Include": "example", "Version": "example" } ]}Request payload to create an immutable Net Operation Project revision from package reference changes.
object
Working revision the package reference edit was based on.
Source checksum of the base revision.
Optional revision comment.
Complete desired package reference set.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
Examplegenerated
{ "BaseRevisionId": "example", "BaseSourceChecksum": "example", "Comment": "example", "PackageReferences": [ { "Include": "example", "Version": "example" } ]}Responses
Section titled “Responses”OK
object
Result of creating a Net Operation Project manual edit revision for package references.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project workspace storage status.
object
Project identifier.
Project display name.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project compiled artifact record.
object
Artifact identifier.
Project identifier.
Build identifier that produced the artifact.
Source revision identifier used by the build.
Whether this artifact is currently active.
Artifact content hash.
Artifact binary size in bytes.
Serialized dependency metadata.
Serialized function descriptors.
Serialized data source descriptors.
Workspace schema contract hash used by the build.
User that published the artifact.
Publication timestamp.
User that deactivated the artifact.
Deactivation timestamp.
Concurrency token.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Whether the project should be explicitly checked after schema changes.
Current generated workspace schema contract hash.
Whether the active artifact was built against a different schema contract.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Stored source revision count.
Stored build history count.
Stored artifact history count.
Creation timestamp.
Last modification timestamp.
Concurrency token.
Runtime activation compatibility for the active Net Operation Project artifact.
object
Active artifact identifier.
Source revision that produced the artifact.
Build that produced the artifact.
Whether the current host can activate the artifact.
Stable machine-readable compatibility reason code.
Localized operator-facing compatibility message.
Safe diagnostic details for the failed startup descriptor, when available.
object
Normalized package references saved in the new revision.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Status": { "CurrentRevision": { "SourceKind": 0, "Status": 0 }, "WorkingRevision": { "SourceKind": 0, "Status": 0 }, "ActiveArtifact": { "Status": 0 }, "LatestBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "LatestCheckBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Result of creating a Net Operation Project manual edit revision for package references.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project workspace storage status.
object
Project identifier.
Project display name.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project compiled artifact record.
object
Artifact identifier.
Project identifier.
Build identifier that produced the artifact.
Source revision identifier used by the build.
Whether this artifact is currently active.
Artifact content hash.
Artifact binary size in bytes.
Serialized dependency metadata.
Serialized function descriptors.
Serialized data source descriptors.
Workspace schema contract hash used by the build.
User that published the artifact.
Publication timestamp.
User that deactivated the artifact.
Deactivation timestamp.
Concurrency token.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Whether the project should be explicitly checked after schema changes.
Current generated workspace schema contract hash.
Whether the active artifact was built against a different schema contract.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Stored source revision count.
Stored build history count.
Stored artifact history count.
Creation timestamp.
Last modification timestamp.
Concurrency token.
Runtime activation compatibility for the active Net Operation Project artifact.
object
Active artifact identifier.
Source revision that produced the artifact.
Build that produced the artifact.
Whether the current host can activate the artifact.
Stable machine-readable compatibility reason code.
Localized operator-facing compatibility message.
Safe diagnostic details for the failed startup descriptor, when available.
object
Normalized package references saved in the new revision.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Status": { "CurrentRevision": { "SourceKind": 0, "Status": 0 }, "WorkingRevision": { "SourceKind": 0, "Status": 0 }, "ActiveArtifact": { "Status": 0 }, "LatestBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "LatestCheckBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Result of creating a Net Operation Project manual edit revision for package references.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project workspace storage status.
object
Project identifier.
Project display name.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project compiled artifact record.
object
Artifact identifier.
Project identifier.
Build identifier that produced the artifact.
Source revision identifier used by the build.
Whether this artifact is currently active.
Artifact content hash.
Artifact binary size in bytes.
Serialized dependency metadata.
Serialized function descriptors.
Serialized data source descriptors.
Workspace schema contract hash used by the build.
User that published the artifact.
Publication timestamp.
User that deactivated the artifact.
Deactivation timestamp.
Concurrency token.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Whether the project should be explicitly checked after schema changes.
Current generated workspace schema contract hash.
Whether the active artifact was built against a different schema contract.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Stored source revision count.
Stored build history count.
Stored artifact history count.
Creation timestamp.
Last modification timestamp.
Concurrency token.
Runtime activation compatibility for the active Net Operation Project artifact.
object
Active artifact identifier.
Source revision that produced the artifact.
Build that produced the artifact.
Whether the current host can activate the artifact.
Stable machine-readable compatibility reason code.
Localized operator-facing compatibility message.
Safe diagnostic details for the failed startup descriptor, when available.
object
Normalized package references saved in the new revision.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Status": { "CurrentRevision": { "SourceKind": 0, "Status": 0 }, "WorkingRevision": { "SourceKind": 0, "Status": 0 }, "ActiveArtifact": { "Status": 0 }, "LatestBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "LatestCheckBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Result of creating a Net Operation Project manual edit revision for package references.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project workspace storage status.
object
Project identifier.
Project display name.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Net Operation Project compiled artifact record.
object
Artifact identifier.
Project identifier.
Build identifier that produced the artifact.
Source revision identifier used by the build.
Whether this artifact is currently active.
Artifact content hash.
Artifact binary size in bytes.
Serialized dependency metadata.
Serialized function descriptors.
Serialized data source descriptors.
Workspace schema contract hash used by the build.
User that published the artifact.
Publication timestamp.
User that deactivated the artifact.
Deactivation timestamp.
Concurrency token.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Whether the project should be explicitly checked after schema changes.
Current generated workspace schema contract hash.
Whether the active artifact was built against a different schema contract.
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
Stored source revision count.
Stored build history count.
Stored artifact history count.
Creation timestamp.
Last modification timestamp.
Concurrency token.
Runtime activation compatibility for the active Net Operation Project artifact.
object
Active artifact identifier.
Source revision that produced the artifact.
Build that produced the artifact.
Whether the current host can activate the artifact.
Stable machine-readable compatibility reason code.
Localized operator-facing compatibility message.
Safe diagnostic details for the failed startup descriptor, when available.
object
Normalized package references saved in the new revision.
External NuGet package reference stored for a Net Operation Project source revision.
object
NuGet package identifier.
NuGet package version.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Status": { "CurrentRevision": { "SourceKind": 0, "Status": 0 }, "WorkingRevision": { "SourceKind": 0, "Status": 0 }, "ActiveArtifact": { "Status": 0 }, "LatestBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "LatestCheckBuild": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}