@@ -42,6 +42,7 @@ def create(
42
42
self ,
43
43
* ,
44
44
account_id : str ,
45
+ id : str | NotGiven = NOT_GIVEN ,
45
46
expiry : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
46
47
metadata : object | NotGiven = NOT_GIVEN ,
47
48
require_signed_urls : bool | NotGiven = NOT_GIVEN ,
@@ -65,6 +66,10 @@ def create(
65
66
Args:
66
67
account_id: Account identifier tag.
67
68
69
+ id: Optional Image Custom ID. Up to 1024 chars. Can include any number of subpaths,
70
+ and utf8 characters. Cannot start nor end with a / (forward slash). Cannot be a
71
+ UUID.
72
+
68
73
expiry: The date after which the upload will not be accepted. Minimum: Now + 2 minutes.
69
74
Maximum: Now + 6 hours.
70
75
@@ -87,6 +92,7 @@ def create(
87
92
f"/accounts/{ account_id } /images/v2/direct_upload" ,
88
93
body = maybe_transform (
89
94
{
95
+ "id" : id ,
90
96
"expiry" : expiry ,
91
97
"metadata" : metadata ,
92
98
"require_signed_urls" : require_signed_urls ,
@@ -117,6 +123,7 @@ async def create(
117
123
self ,
118
124
* ,
119
125
account_id : str ,
126
+ id : str | NotGiven = NOT_GIVEN ,
120
127
expiry : Union [str , datetime ] | NotGiven = NOT_GIVEN ,
121
128
metadata : object | NotGiven = NOT_GIVEN ,
122
129
require_signed_urls : bool | NotGiven = NOT_GIVEN ,
@@ -140,6 +147,10 @@ async def create(
140
147
Args:
141
148
account_id: Account identifier tag.
142
149
150
+ id: Optional Image Custom ID. Up to 1024 chars. Can include any number of subpaths,
151
+ and utf8 characters. Cannot start nor end with a / (forward slash). Cannot be a
152
+ UUID.
153
+
143
154
expiry: The date after which the upload will not be accepted. Minimum: Now + 2 minutes.
144
155
Maximum: Now + 6 hours.
145
156
@@ -162,6 +173,7 @@ async def create(
162
173
f"/accounts/{ account_id } /images/v2/direct_upload" ,
163
174
body = await async_maybe_transform (
164
175
{
176
+ "id" : id ,
165
177
"expiry" : expiry ,
166
178
"metadata" : metadata ,
167
179
"require_signed_urls" : require_signed_urls ,
0 commit comments