Saltar para o conteúdo principal

Este browser já não é suportado.

Atualize para o Microsoft Edge para tirar partido das mais recentes funcionalidades, atualizações de segurança e de suporte técnico.

Transferir Microsoft Edge Mais informações sobre o Internet Explorer e o Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

Agent Microsoft 365 Publishing

Generate a Microsoft 365 app package

POST /agents/{agent_name}/microsoft365/zip

Generates the Microsoft Teams app package (zip) for a Foundry agent from the supplied publish request, without publishing it. Returns the app package as application/zip.

Parâmetros de caminho

agent_name string obrigatório

The name of the agent to generate the app package for.

Parâmetros de consultas

api-version string obrigatório

The API version to use for this operation.

Corpo do Pedido

Content-Type: application/json
agentDisplayName string

Display name used as the published Teams app name. When omitted, the agent name from the route is used.

botServiceArmId string

ARM resource id of the Azure Bot Service that fronts this agent in Microsoft Teams. Required for workspaces on the default bot-based Teams backend; optional for workspaces on the API-based backend. Must not be supplied when publishAsAutopilot is true.

publishAsAutopilot boolean

When true, the agent is published as an autopilot (digital worker) agent: the bot id is taken from the agent's blueprint identity and the generated Teams manifest is marked as a digital worker.

accessBoundaries ActivityProtocolAccessBoundary[]

Activity-protocol access boundaries to apply to the agent when publishing as an autopilot agent. An empty list clears the existing boundaries. When omitted, the existing boundaries are left unchanged.

optionalPermissionScopes Microsoft365PermissionScopes[]

Exact selection of delegated permission scopes to grant to the autopilot blueprint. May only be supplied when publishAsAutopilot is true. When omitted or empty, the platform's default permission set is used. Mandatory platform permissions are always granted and are not affected by this value.

publishScope string | enum obrigatório

The publish scope for the generated Microsoft Teams app.

Qualquer uma das seguintes opções:
string
enum
PersonalSharedTenant
canRespondWithoutMention boolean

Controls how the published agent responds to Teams messages: when true it responds to all messages on its surfaces, when false only when it is at-mentioned. When omitted, the agent's existing Teams message-notification setting is left unchanged.

appVersion string

App version (for example 1.2.3) written into the Teams manifest. May contain only digits and periods, must not start with 0, and must end with a digit. When omitted, a platform default is used.

shortDescription string

Short, one-line description shown in the Teams app listing.

fullDescription string

Full description shown on the Teams app details page.

developerName string

Display name of the developer / publisher shown in the Teams app listing.

developerWebsiteUrl string

Developer / publisher website URL shown in the Teams app listing. Must be an https URL.

privacyUrl string

Privacy policy URL shown in the Teams app listing. Must be an http or https URL.

termsOfUseUrl string

Terms-of-use URL shown in the Teams app listing.

colorIconBase64 string

Optional base64-encoded PNG used as the color (full-bleed) icon in the Teams app package. Must be a 192x192 PNG (perfect square, no border or rounded corners). Max 1 MB after decode. When omitted, the platform default color icon is used.

outlineIconBase64 string

Optional base64-encoded PNG used as the outline icon in the Teams app package. Must be a 32x32 PNG. Max 1 MB after decode. When omitted, the platform default outline icon is used.

Respostas

The generated Microsoft 365 app package (Microsoft Teams app zip).

Corpo

Content-Type: application/zip

Client error

Corpo

Content-Type: application/json
error OpenAI.Error obrigatório
code string | null obrigatório
message string obrigatório
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string obrigatório

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Server error

Corpo

Content-Type: application/json
error OpenAI.Error obrigatório
code string | null obrigatório
message string obrigatório
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string obrigatório

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Pedir

POST /agents/{agent_name}/microsoft365/zip HTTP/1.1

Response

Status: 200
Content-Type: application/zip
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
pt-pt
Suas opções de privacidade
  • Exclusão de responsabilidade de IA
  • Versões anteriores
  • Blogue
  • Contribuir
  • Privacidade
  • Privacidade da Saúde do Consumidor
  • Termos de Utilização
  • Marcas Comerciais
  • © Microsoft 2026