Skip to content

Commit cd6bf61

Browse files
committed
Exclude draft from UpdateAgentRequest (immutable post-create)
`draft` is a creation-time property and is not alterable on an existing agent version. `UpdateAgentRequest` therefore should not expose it. Switched the spread to `OmitProperties<CreateAgentVersionRequest, ""draft"">` so PATCH /agents/{name} no longer accepts `draft`. Callers wanting a draft version must use the explicit POST /agents/{name}/versions endpoint. CreateAgentRequest and AgentVersionObject continue to carry `draft`. Regenerated swaggers for v1 and virtual-public-preview - pure removals of the `draft` property from UpdateAgentRequest only.
1 parent e82ac1c commit cd6bf61

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38396,11 +38396,6 @@
3839638396
"WorkflowAgents=V1Preview"
3839738397
]
3839838398
}
38399-
},
38400-
"draft": {
38401-
"type": "boolean",
38402-
"description": "Whether this agent version is a draft (candidate) rather than a release. Defaults to false. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted.",
38403-
"default": false
3840438399
}
3840538400
}
3840638401
},

specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41052,11 +41052,6 @@
4105241052
"WorkflowAgents=V1Preview"
4105341053
]
4105441054
}
41055-
},
41056-
"draft": {
41057-
"type": "boolean",
41058-
"description": "Whether this agent version is a draft (candidate) rather than a release. Defaults to false. Draft versions are recorded but excluded from default 'latest' resolution and are not auto-promoted.",
41059-
"default": false
4106041055
}
4106141056
}
4106241057
},

specification/ai-foundry/data-plane/Foundry/src/agents/models.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ model CreateAgentRequest {
7777
}
7878

7979
model UpdateAgentRequest {
80-
...CreateAgentVersionRequest;
80+
...OmitProperties<CreateAgentVersionRequest, "draft">;
8181
}
8282

8383
union AgentObjectType {

0 commit comments

Comments
 (0)