Skip to content

Commit 925b5e4

Browse files
committed
Update change-tracking.md
1 parent 5df75ae commit 925b5e4

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

graph/patterns/change-tracking.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The pattern requires a sequence of requests on the delta function, for additiona
2121

2222
1. GET request which returns the first page of the current state of the resources that delta applies to.
2323
2. [Optionally] Further GET requests to retrieve more pages of the current state via the `@odata.nextLink` URL.
24-
3. After some time, a GET request to see if there are new changes via the `@odata.deltaLink`URL.
24+
3. After some time, a GET request to see if there are new changes via the `@odata.deltaLink` URL.
2525
4. [Optionally] GET requests to retrieve more pages of changes via the `@odata.nextLink` URL.
2626

2727
The `nextLink` provides a mechanism to do server-driven paging through the change data that is currently available. When there are no further pages of changes immediately available, a `deltaLink` is returned instead.
@@ -30,7 +30,7 @@ The `deltaLink` provides a mechanism for the API consumer to catch up on changes
3030

3131
Both `nextLink` and `deltaLink` MUST be considered opaque URLs. The best practice is to make them opaque via encoding.
3232

33-
Delta payload requirements
33+
Delta payload requirements:
3434
- The payload is a collection of change records using the collection format.
3535
- The change records are full or partial representations of the resources according to their resource types.
3636
- When a change representing a resource update is included in the payload the API producer MAY return either the changed properties or the full entity. The ID of the resource MUST be included in every change record.
@@ -50,7 +50,7 @@ API consumers want a pull mechanism to request and process change to Microsoft G
5050

5151
API consumers need guaranteed data integrity over the set of changes to Microsoft Graph data.
5252

53-
## Issues and considerations
53+
## Considerations
5454

5555
- API service MAY be able to respond to standard OData query parameters with the initial call to the delta function:
5656

@@ -60,18 +60,15 @@ API consumers need guaranteed data integrity over the set of changes to Microsof
6060
- `$top` parameter to influence the size of the set of change records.
6161

6262
These query parameters MUST be encoded into subsequent `@odata.nextLink` or `@odata.deltaLink`, such that the same options are preserved through the call sequence without callers respecifying them, which MUST NOT be allowed. OData query parameters must be honored in full, or a 400-error returned.
63-
6463
- Making a sequence of calls to a delta function followed by the opaque URLs in the `nextLink` and `deltaLink` MUST guarantee that the data at the start time of the call sequence and all changes to the data thereafter will be returned at least once. It is not necessary to avoid duplicates in the sequence. When the delta function is returning changes, they MUST be sequenced chronologically refer to [public documentation](https://learn.microsoft.com/en-us/graph/delta-query-overview?view=graph-rest-1.0) for more details.
65-
6664
- The delta function can be bound to a collection, as with
67-
`/users/delta` that returns the changes to the users' collection.
68-
65+
`/users/delta` that returns the changes to the users' collection
6966
or to some logical parent resource, where the change records are implied to be relative to all collections contained within the parent, for example
7067
`/me/planner/all/delta` – this returns changes to any resource within planner that a user is subscribed to as a heterogenous collection.
71-
72-
- Although this capability is similar to the OData `$delta` feed capability, it is a different construct. Microsoft Graph APIs MUST provide change tracking through the delta function and MUST NOT implement the OData `$delta` feed when providing change tracking capabilities to ensure the uniformity of the API experience.
7368
- API producers might use `$skipToken` and `$deltaToken` within their implementations of `nextLink` and `deltaLink`, however the URLs are defined as being opaque and the existence of the tokens MUST NOT be documented. It is not a breaking change to modify the structure of `nextLinks` or `deltaLinks`.-
7469
- `nextLink` and `deltaLink` URLs are valid for a specific period before the client application needs to run a full synchronization again.For `nextLink`, a minimal validity time should be 1 hour. For `deltaLink`, a minimal validity time should be seven days. When a link is no longer valid it must return a standard error with a 410 GONE response code.
70+
- Although this capability is similar to the OData `$delta` feed capability, it is a different construct. Microsoft Graph APIs MUST provide change tracking through the delta function and MUST NOT implement the OData `$delta` feed when providing change tracking capabilities to ensure the uniformity of the API experience.
71+
- The Graph delta payload format has some deviations from the OData 4.01 change tracking format to simplify parsing, for example the context annotation is removed.
7572

7673

7774
## Alternatives

0 commit comments

Comments
 (0)