| title | Update yearTimePeriodDefinition |
|---|---|
| description | Update the properties of a yearTimePeriodDefinition object. |
| author | mlafleur |
| ms.localizationpriority | medium |
| ms.subservice | industry-data-etl |
| doc_type | apiPageType |
| ms.date | 04/05/2024 |
Namespace: microsoft.graph.industryData
[!INCLUDE beta-disclaimer]
Update the properties of a yearTimePeriodDefinition object.
[!INCLUDE national-cloud-support]
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]
PATCH /external/industryData/years/{yearTimePeriodDefinitionId}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
[!INCLUDE table-intro]
| Property | Type | Description |
|---|---|---|
| displayName | String | The name of the year. Maximum supported length is 100 characters. Required. |
| endDate | Date | The last day of the year using ISO 8601 format for date. Required. |
| startDate | Date | The first day of the year using ISO 8601 format for date. Required. |
If successful, this method returns a 204 No Content response code.
The following example shows a request.
PATCH https://graph.microsoft.com/beta/external/industryData/years/ebf18762-ab92-487e-21d1-08daddab28bb
Content-Type: application/json
Content-length: 242
{
"displayName": "Fiscal Year 2022",
"id": "ebf18762-ab92-487e-21d1-08daddab28bb"
}[!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]
The following example shows the response.
HTTP/1.1 204 No Content