Skip to content

feat(api): Named Transformations API - #22

Open
hrhv wants to merge 2 commits into
mainfrom
feature/IK-2641
Open

feat(api): Named Transformations API#22
hrhv wants to merge 2 commits into
mainfrom
feature/IK-2641

Conversation

@hrhv

@hrhv hrhv commented Jul 28, 2026

Copy link
Copy Markdown
Member

Added named transformations endpoints for listing, creating, retrieving, and updating transformations

  • Introduced new endpoints for managing named transformations, including GET, POST, and PATCH methods.
  • Added detailed descriptions and response schemas for each endpoint in the OpenAPI specification.
  • Updated the stainless configuration to include named transformations resources.

… retrieving, and updating transformations

- Introduced new endpoints for managing named transformations, including GET, POST, and PATCH methods.
- Added detailed descriptions and response schemas for each endpoint in the OpenAPI specification.
- Updated the stainless configuration to include named transformations resources.
@hrhv
hrhv requested a review from manu4543 July 28, 2026 06:07
Comment thread openapi/v1.0.0.yaml Outdated
**Note:** Use the `includeDefault` query parameter to exclude the account's default named transformation (`ik_ml_thumbnail`) from the response.
parameters:
- in: query
name: includeDefault

@imagekitio imagekitio Jul 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given we dont let anyone mutate this default transformation, might as well not return it in any API and then this includeDefault is also not needed. Similarly isDefault value wont be needed in #/components/schemas/NamedTransformation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepting this direction.
Ref: Slack Thread

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

Comment thread openapi/v1.0.0.yaml Outdated

**Note:**

- The account's default named transformation (`ik_ml_thumbnail`) cannot be deleted. This API returns a `400` error if attempted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you accept my above comment about not exposing default transformation, then this is also not required. The user wont have id of default entity and wont attempt delete.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepting this direction.
Ref: Slack Thread

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

Comment thread openapi/v1.0.0.yaml
type: string
format: date-time
description: Timestamp when the saved extension was last updated.
CreateNamedTransformation:

@imagekitio imagekitio Jul 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest create a PR in this https://github.com/imagekit-developer/imagekit-sdk-config against main and then you can review the generated sdk on all public repos. With same branch name as your branch in imagekit-sdk-config. I have given you the access. It would happen automatically, just do not merge to main as it would change main branch of all SDKs.

If there is any issue in sdk generation, then we need to fix the spec. Let me know if you need any help.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants