Overview
Modify a layer of time-based annotation.
HTTP method |
PATCH |
Creates and updates segments:
|
---|---|---|
PUT |
Replaces the segments of the given layers:
|
|
URI template variables |
- |
|
Query parameters |
- |
|
Request body |
An aa:time-based resource with one or more layers. Example:
|
|
HTTP response |
200 OK |
|
Response body |
A bare JSON object (i.e. not a "full" aa:time-based resource) reflecting the PATCHed/PUT layers and segments in the order they where passed. If segment ids were created, those will be present in the response as well.
|
|
Available in |
Description
Modify a layer of time-based annotation.
The behavior depends on the HTTP verb used when calling the link.
-
PATCH: Existing segments are updated, non-existing segments are created. Segments that are not mentioned in the body are left untouched.
-
PUT: Replace the existing segments with the given segments. Existing segments are updated, non-existing segments are created. Segments that are not mentioned in the body are deleted.