Skip to content

Latest commit

 

History

History
134 lines (91 loc) · 4.56 KB

publishedresource-update.md

File metadata and controls

134 lines (91 loc) · 4.56 KB
title description ms.localizationpriority author ms.subservice doc_type
Update publishedResource
Update the properties of a [publishedResource](../resources/publishedresource.md) object.
medium
dhruvinrshah
entra-applications
apiPageType

Update publishedResource

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update the properties of published resource publishedResource object.

[!INCLUDE national-cloud-support]

Permissions

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]

HTTP request

PATCH /onPremisesPublishingProfiles/{profile-id}/publishedResources/{resource-id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

In the request body, supply the values for relevant fields to update. Existing properties that aren't included in the request body maintains their previous values or are recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.

The following table lists the properties that can be updated.

Property Type Description
displayName String Represents an on-premises published resource name.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

Here's an example of the request.

PATCH https://graph.microsoft.com/beta/onPremisesPublishingProfiles/provisioning/publishedResources/1234b780-965f-4149-85c5-a8c73e58b67d

{
    "displayName": "Demo provisioning (updated)"
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

Here's an example of the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 204 No Content