You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the tagged builds API documentation to reflect the new
interface and the fix for an inherent race condition that was fixed in
apify/apify-core#23446.
---------
Co-authored-by: Tobiáš Potoček <[email protected]>
Copy file name to clipboardExpand all lines: apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml
+39-6Lines changed: 39 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,16 +53,48 @@ properties:
53
53
taggedBuilds:
54
54
type: object
55
55
description: |
56
-
Object containing the Actor's tagged builds, where the key is the tag name (e.g., _latest_) and the value is an object containing the build ID.
57
-
The object you provide will completely overwrite all existing tagged builds for the Actor.
56
+
An object to modify tags on the Actor's builds. The key is the tag name (e.g., _latest_), and the value is either an object with a `buildId` or `null`.
58
57
59
-
- To create or reassign a tag: Include it in the object with the desired `buildId`.
60
-
- To remove a specific tag: Submit the object without that tag's key.
61
-
- To remove all tags: Provide an empty object: `{}`.
62
-
- If this field is omitted or `null`, the existing tags will not be changed.
58
+
This operation is a patch; any existing tags that you omit from this object will be preserved.
59
+
60
+
- **To create or reassign a tag**, provide the tag name with a `buildId`. e.g., to assign the _latest_ tag:
61
+
62
+
 
63
+
64
+
```json
65
+
{
66
+
"latest": {
67
+
"buildId": "z2EryhbfhgSyqj6Hn"
68
+
}
69
+
}
70
+
```
71
+
72
+
- **To remove a tag**, provide the tag name with a `null` value. e.g., to remove the _beta_ tag:
73
+
74
+
 
75
+
76
+
```json
77
+
{
78
+
"beta": null
79
+
}
80
+
```
81
+
82
+
- **To perform multiple operations**, combine them. The following reassigns _latest_ and removes _beta_, while preserving any other existing tags.
0 commit comments