Skip to content

Latest commit

 

History

History
121 lines (89 loc) · 4.23 KB

File metadata and controls

121 lines (89 loc) · 4.23 KB
title Update referenceDefinition
description Update the properties of a referenceDefinition object.
author dakelle
ms.localizationpriority medium
ms.subservice industry-data-etl
doc_type apiPageType
ms.date 06/28/2024

Update referenceDefinition

Namespace: microsoft.graph.industryData

[!INCLUDE beta-disclaimer]

Update the properties of a referenceDefinition 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 /external/industryData/referenceDefinitions/{referenceDefinitionId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

[!INCLUDE table-intro]

Property Type Description
displayName String A human-readable representation of the reference code value for display in a user interface. Optional.
isDisabled Boolean Indicates whether the definition is disabled. Required.
sortIndex Int32 The index that specifies the order in which to present the definition to the user. Must be unique within the referenceType. Required.

Response

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

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/external/industryData/referenceDefinitions/RefGradeLevel-TestGrade
Content-Type: application/json

{
    "@odata.type": "#microsoft.graph.industryData.referenceDefinition",
    "displayName": "Updated Test Grade Name"
}

[!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

The following example shows the response.

HTTP/1.1 204 No Content