Commit Desired State
const url = 'https://example.com/api/v3/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/desired-state/commits';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"base_revision_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","bundle":{"assets":[{"content":"example","content_type":"text/plain; charset=utf-8","kind":"soul","path":"example","sha256":"example"}],"manifest":"example"},"idempotency_key":"example","mutation":{"identity":{"audience":"example","issuer_url":"example","jwks_url":"example","mode":"app_backend","tenant_id_claim":"example","user_id_claim":"sub"},"type":"project.identity.set"}}'};
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/v3/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/desired-state/commits \ --header 'Content-Type: application/json' \ --data '{ "base_revision_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "bundle": { "assets": [ { "content": "example", "content_type": "text/plain; charset=utf-8", "kind": "soul", "path": "example", "sha256": "example" } ], "manifest": "example" }, "idempotency_key": "example", "mutation": { "identity": { "audience": "example", "issuer_url": "example", "jwks_url": "example", "mode": "app_backend", "tenant_id_claim": "example", "user_id_claim": "sub" }, "type": "project.identity.set" } }'Commit one atomic source revision and immutable Candidate transaction.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”One source input plus replay and concurrency identity.
object
Transport-independent full source bundle used for plan and commit.
- ProjectIdentitySetV3
- ProjectMetadataUpdateV3
- ProjectPolicySetV3
- AgentCreateV3
- AgentUpdateV3
- AgentConfigureV3
- AgentCloneV3
- AgentDeleteV3
- AgentSoulSetV3
- SkillUpsertV3
- SkillRemoveV3
- AgentSkillAttachV3
- AgentSkillDetachV3
- CapabilityUpsertV3
- CapabilityRemoveV3
- AgentCapabilityGrantV3
- AgentCapabilityRevokeV3
- CredentialRequirementUpsertV3
- CredentialRequirementRemoveV3
- MemoryNamespaceUpsertV3
- MemoryNamespaceRemoveV3
- AgentMemoryGrantV3
- AgentMemoryRevokeV3
- ConnectionUpsertV3
- ConnectionRemoveV3
- AgentConnectionAttachV3
- AgentConnectionDetachV3
- AgentModelSetV3
- AgentLimitsSetV3
- AgentDelegationAddV3
- AgentDelegationRemoveV3
object
object
Project ceiling that an Agent may narrow but never widen.
object
object
Agent behavior plus explicit grants from Project-owned catalogs.
object
Reviewed edge to another Agent in the same Project.
object
object
object
Replace one Agent’s complete governed behavior in a single Candidate.
object
Reviewed edge to another Agent in the same Project.
object
object
object
object
object
One source asset supplied with a v3 desired-state bundle.
object
object
object
object
One source asset supplied with a v3 desired-state bundle.
One Agent-grantable verb backed by a reviewed Project integration.
object
object
object
object
object
object
object
object
object
object
object
object
Project-owned application or messaging surface declaration.
object
object
object
object
object
Reviewed edge to another Agent in the same Project.
object
Responses
Section titled “Responses”Successful Response
Durable mutation receipt returned only after the transaction commits.
object
Exact immutable release identity shown in plans and receipts.
object
Exact server-versioned desired-state head identity.
object
Example
{ "api_version": "genaug.mutation-receipt/v3", "status": "unchanged"}Authentication failed with a resumable next action.
FastAPI error envelope shared by v3 management endpoints.
object
One bounded error with a coding-agent-safe recovery action.
Examplegenerated
{ "detail": { "affected_resource": "example", "message": "example", "next_action": "example", "operation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "phase": "example", "reason_code": "example" }}The authenticated actor lacks the required Project authority.
FastAPI error envelope shared by v3 management endpoints.
object
One bounded error with a coding-agent-safe recovery action.
Examplegenerated
{ "detail": { "affected_resource": "example", "message": "example", "next_action": "example", "operation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "phase": "example", "reason_code": "example" }}The scoped management resource was not found.
FastAPI error envelope shared by v3 management endpoints.
object
One bounded error with a coding-agent-safe recovery action.
Examplegenerated
{ "detail": { "affected_resource": "example", "message": "example", "next_action": "example", "operation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "phase": "example", "reason_code": "example" }}A stable management invariant prevented progress.
FastAPI error envelope shared by v3 management endpoints.
object
One bounded error with a coding-agent-safe recovery action.
Examplegenerated
{ "detail": { "affected_resource": "example", "message": "example", "next_action": "example", "operation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "phase": "example", "reason_code": "example" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}