| title | Update webApplicationSegment |
|---|---|
| description | Update the properties of a webApplicationSegment object. |
| author | dhruvinrshah |
| ms.localizationpriority | medium |
| ms.subservice | entra-applications |
| doc_type | apiPageType |
| ms.date | 12/19/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update the properties of a webApplicationSegment object.
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE rbac-app-proxy-write]
PATCH /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.webSegmentConfiguration/applicationSegments/{applicationSegment-id}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
[!INCLUDE table-intro]
| Property | Type | Description |
|---|---|---|
| internalUrl | String | The internal URL of the application segment; for example, https://intranet/. |
| externalUrl | String | The published external URL for the application segment; for example, https://intranet.contoso.com/. |
| alternateUrl | String | If you're configuring a traffic manager in front of multiple app proxy application segments, this property contains the user-friendly URL that points to the traffic manager. |
| corsConfigurations | corsConfiguration_v2 collection | A collection of CORS Rule definitions for a particular application segment. |
If successful, this method returns a 204 No Content response code.
The following example shows a request.
PATCH https://graph.microsoft.com/beta/applications/2709c601-fcff-4010-94ea-5f862f755568/onPremisesPublishing/segmentsConfiguration/microsoft.graph.webSegmentConfiguration/applicationSegments/{segmentId}
Content-Type: application/json
{
"externalUrl" : "https://test.contoso.net",
"corsConfigurations": [
{
"id": "d65fd5ca-8d08-4276-a2a6-0f8488227003",
"resource": "/",
"allowedOrigins": [
"https://blah1.testinggs.com/"
],
"allowedHeaders": [
"*"
],
"allowedMethods": [
"*"
],
"maxAgeInSeconds": 0
}
]
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 204 No Content