update_web_resource_and_publish
Update an existing Dynamics 365 web resource by GUID and optionally publish it, with optional optimistic concurrency and a dry-run preview to verify changes before saving.
Instructions
Update an existing Web Resource by GUID and optionally publish it. Uses If-Match:* to prevent accidental upsert; pass if_match for optimistic concurrency. dry_run reads the latest saved/unpublished definition and returns hashes and ETag. Does not rename or change the resource type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| dryRun | No | Compatibility alias for dry_run; conflicting aliases are rejected. | |
| content | No | Inline content, UTF-8 by default. Supply exactly one of content or file_path; empty content is allowed. | |
| dry_run | No | Read-only preview showing the environment, target, metadata changes and content hashes. Does not save or publish. | |
| ifMatch | No | Compatibility alias for if_match; conflicting aliases are rejected. | |
| publish | No | Default true preserves the old save-and-publish behavior. Set false to save without publishing. | |
| filePath | No | Compatibility alias for file_path; conflicting aliases are rejected. | |
| if_match | No | A specific ETag from a previous read/preview, such as W/"123". HTTP 412 is a conflict and is never retried. | |
| file_path | No | Absolute source-file path on the MCP server machine; read as bytes and Base64 encoded. Supply exactly one of file_path or content. Maximum 10 MiB. | |
| description | No | Optional description; an empty string clears it. | |
| displayName | No | Compatibility alias for display_name; conflicting aliases are rejected. | |
| display_name | No | ||
| contentEncoding | No | Compatibility alias for content_encoding; conflicting aliases are rejected. | |
| content_encoding | No | Inline content encoding, default utf8. Base64 must be canonical. Not used with file_path. |