What changed
The twelve are marked deprecated in the OpenAPI spec and left out of the reference navigation, so new code lands on the current name. Left out of the navigation, not left out of the spec: download the spec and the twelve are still in it, withdeprecated: true on each, so a generated client keeps every
method it has and your linter is the one that tells you which to move off.
Three things carry the earlier spelling, and each one moves on its own: the
path you call, the kind a job reports, and the event name a webhook endpoint
receives.
How to tell whether this affects you
- A request URL in your code contains
/api/v1/sudoai/2d-mockupsor/api/v1/mockups. - Your generated client or linter flags one of its methods as deprecated.
- A job you read back reports
kindas2d_createor2d_render. - A webhook body you receive carries an
eventthat starts with2d_mockup.or2d_render.. - A request to
/api/v1/sudoai/2d-mockup/renderor/api/v1/sudoai/renderanswers404.
What to change
Photo mockup paths
Everything under/api/v1/sudoai/2d-mockups is the same operation as its
/api/v1/photo-mockups twin, on the same data. Moving is a string swap: the
headers, the body and the response are identical. The current two step flow,
end to end, is in Photo mockups.
PSD mockup paths
Five paths under/api/v1/mockups answer for the PSD mockup collection
under its earlier prefix.
The two retired render paths
The singular render paths were retired and answer404:
/api/v1/sudoai/2d-mockup/render and its older alias /api/v1/sudoai/render.
The mockup id moved out of the request body and into the URL, so the body now
carries only print_areas and export_options.
Render artwork has the shape the body takes
now, and Render a photo mockup
carries the full contract.
404 Not Found
Seeing this on a path you believe is current points at the id, not the name.
Check that the mockup id in the URL belongs to your account before you change
anything else.
The job kind
A job accepted on an earlier path reports the earlierkind, and the same job
accepted on the current path reports the current one. Code that compares the
kind literally should accept both spellings while you move.
Webhook event names
A webhook endpoint created before the current names were introduced is pinned to the earlier spelling and keeps receiving the same five events under it. Thekind inside a payload always follows the endpoint, whichever path accepted
the job.
A pinned endpoint's payload
event_naming. An
endpoint follows the spelling its event_types list is written in, and falls
back to legacy when the list does not say. Re-pin an existing endpoint to
current with Update an existing webhook
endpoint
once your handler reads the new names.
Event names, payloads and signature verification are covered in
Webhooks.
If you are still stuck
- Check the path in your request against a current name in the tables above.
- Read
kindon the job andeventon the webhook body, and accept both spellings until every caller has moved. - Regenerate your client from the current spec, so the deprecation warnings point at what is left.
- Contact us with the request path and the job id.