Skip to content

Commit 730d5bb

Browse files
authored
set expiration through API: fix example (quay#1255)
The example looks like a copy/paste from another place and was not updated. Fix the payload to match was expected.
1 parent 5aae811 commit 730d5bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting-tag-expiration-api.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ curl -X PUT \
1919
-H "Authorization: Bearer <bearer_token>" \
2020
-H "Content-Type: application/json" \
2121
--data '{
22-
"manifest_digest": "<manifest_digest>"
22+
"expiration": "<seconds since epoch>"
2323
}' \
2424
https://<quay-server.example.com>/api/v1/repository/<namespace>/<repository_name>/tag/<tag>
2525
----
@@ -29,4 +29,4 @@ $ curl -X PUT \
2929
[source,terminal]
3030
----
3131
"Updated"
32-
----
32+
----

0 commit comments

Comments
 (0)