Skip to content

Commit 331c16a

Browse files
feat(api): OpenAPI spec update via Stainless API (#335)
1 parent 4285e98 commit 331c16a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/resources/images/v2/direct-uploads.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ export interface DirectUploadCreateParams {
4848
*/
4949
account_id: string;
5050

51+
/**
52+
* Body param: Optional Image Custom ID. Up to 1024 chars. Can include any number
53+
* of subpaths, and utf8 characters. Cannot start nor end with a / (forward slash).
54+
* Cannot be a UUID.
55+
*/
56+
id?: string;
57+
5158
/**
5259
* Body param: The date after which the upload will not be accepted. Minimum: Now +
5360
* 2 minutes. Maximum: Now + 6 hours.

tests/api-resources/images/v2/direct-uploads.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('resource directUploads', () => {
2828
test.skip('create: required and optional params', async () => {
2929
const response = await cloudflare.images.v2.directUploads.create({
3030
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
31+
id: 'this/is/my-customid',
3132
expiry: '2021-01-02T02:20:00Z',
3233
metadata: {},
3334
requireSignedURLs: true,

0 commit comments

Comments
 (0)