Skip to content
GitmoapAPIBeta
Schema

PublishAiOrgRevisionResponse

What publishing the draft did — or, with dry_run, would do.

Shape

  • dry_runboolean
  • stepsarray of ProvisioningStepThe structural steps, in the order applied.
  • revisionAiOrgRevision or nulloptionalThe revision now live; absent on a dry run.
    • The AiOrgRevision schema
    • author_kindAiRevisionAuthorpersonagentplatform
    • bodyOrgConfig
      • The OrgConfig schema
      • autonomyAutonomyConfig
        • The AutonomyConfig schema
        • levelAutonomyLevelsupervisedgatedautonomousHow much an organization may do without asking: a named preset for every gate, each of which can still be set on its own.
        • gatesarray of GateOverrideoptional
      • budgetsBudgets
        • The Budgets schema
        • org_monthly_cap_microsinteger · int640–∞All model usage and fees of the organization per calendar month in UTC. Required.
        • agent_daily_cap_microsinteger · int64 or nulloptional0–∞
        • session_cap_microsinteger · int64 or nulloptional0–∞
      • structureOrgStructure
        • The OrgStructure schema
        • levelStructureLevelL1L2L3The organization's shape: L1 is engineers in one squad, L2 adds squads each led by a product owner, L3 adds a director across the squads.
        • boardarray of UserId (string · uuid)optionalBesides the root group's Owners, who are always on it.
      • agentsarray of AgentConfigoptional
        • The AgentConfig schema
        • display_nameAgentDisplayName (string)
        • handleAgentHandle (string)
        • keyAgentKey (string)
        • positionPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writerAn agent's job, which decides what it may do and which model tier it uses by default.
        • squadSquadKey (string)
        • profileAgentProfileoptional
        • specialisationSpecialisationbackendfrontendinfrastructurecli_and_toolingqualityor nulloptionalAn engineer's specialisation, which shapes the work it is given.
        • wip_limitinteger · int32 or nulloptional0–∞
      • modelsarray of PositionRoutingoptionalPinned.
        • The PositionRouting schema
        • positionPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writerAn agent's job, which decides what it may do and which model tier it uses by default.
        • tierAiModelTiermost_capablestandardeconomicalA model tier: the most capable, the standard, or the economical model in the organization's region.
        • modelAiModelKey (string) or nulloptionalAn exact model, which stays exact until the provider retires it.
      • pipelinesPipelinePolicyoptionalOrdered.
        • The PipelinePolicy schema
        • agent_codeAgentCodeTrustuntrustedtrustedoptionalWhether a run of code an agent wrote, or a run an agent started, gets the repository's connections, secrets, cloud roles and build cache.
      • squadsarray of SquadConfigoptional
        • The SquadConfig schema
        • keySquadKey (string)
        • leadAgentKey (string)
        • nameSquadName (string)
        • repositoriesarray of RepositoryId (string · uuid)optional
      • trackerTrackerConfigoptional
      • triggersTriggerAllowListoptional
    • body_digeststringHex SHA-256 of the canonical body; two revisions with one digest are one configuration.
    • created_atstring · date-time
    • created_byActorSummary
    • numberinteger · int64
    • org_idAiOrgId (string · uuid)
    • revision_idAiOrgRevisionId (string · uuid)
    • stateAiRevisionStatedraftproposedpublishedsupersededdeclined
    • updated_atstring · date-time
    • parent_numberinteger · int64 or nulloptionalThe revision this one was edited from.
    • published_atstring · date-time or nulloptional
    • published_byActorSummary or nulloptional

Example

Synthesized example
{
"dry_run": false,
"steps": [
{
"action": "hire_agent",
"agent_key": "agent-key-8ff5",
"handle": "handle-b845",
"position": "engineer",
"squad": "squad-0570"
}
],
"revision": {
"author_kind": "person",
"body": {
"autonomy": {
"level": "supervised",
"gates": [
{
"gate": "merge_protected",
"setting": "ask"
},
{
"gate": "merge_protected",
"setting": "ask"
}
]
},
"budgets": {
"org_monthly_cap_micros": 53,
"agent_daily_cap_micros": 73,
"session_cap_micros": 26
},
"structure": {
"level": "L1",
"board": [
"b7e2d1c0-9f8e-4d7c-a6b5-c4d3e2f1a0b9"
]
},
"agents": [
{
"display_name": "Lin Park",
"handle": "handle-3741",
"key": "key-c7a9",
"position": "engineer",
"squad": "squad-605a"
}
],
"models": [
{
"position": "engineer",
"tier": "most_capable"
}
],
"pipelines": {
"agent_code": "untrusted"
},
"squads": [
{
"key": "key-35f9",
"lead": "lead-c040",
"name": "payments-api"
},
{
"key": "key-4233",
"lead": "lead-27fd",
"name": "payments-api"
}
],
"tracker": {
"kind": "gitmoap"
},
"triggers": {
"principals": [
"a28a93e3-c574-429a-919b-9a36340e2583"
]
}
},
"body_digest": "body-digest-7502",
"created_at": "2026-10-11T15:28:29Z",
"created_by": {
"email": "lin@acme.example",
"id": "id-080c",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/070607ed"
},
"number": 17,
"org_id": "65078698-436e-4478-b8ef-1de4921fab0a",
"revision_id": "7cb7c7bf-2d0a-4a4f-b0fb-9c35968fcd96",
"state": "draft",
"updated_at": "2026-10-15T03:50:59Z",
"parent_number": 74,
"published_at": "2026-10-14T04:56:41Z",
"published_by": {
"email": "tomas@acme.example",
"id": "id-4537",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/c5ff9b78"
}
}
}

Graph

Used inside

No schema contains this one.

Used by

Sent by 0 operations

No operation takes it as a request body.