Every face lens and screen effect has one draft and any number of published versions. You edit the draft. Publishing freezes it as the next version.
The lists of face lenses and screen effects have a status filter.
Owners and Designers can publish. Choose Publish in the studio header, and the editor:
If there are issues, the Issues tab lists them, the editor says "Fix the issues before publishing.", and nothing is published. When it works, you see a message such as "Published version 3".
Versions are numbered 1, 2, 3 and so on. A version holds the manifest and the images its layers use. Images you uploaded but never used in a layer are left out.
Once published, a version's files are never changed or overwritten.
This is what lets your app keep a version for good once it has checked it — unless an Owner deletes that version or the item (below). See Downloading safely.
The studio's Versions tab lists every published version, newest first, with:
manifest.json
After a face lens is published, the editor draws a 512 × 512 PNG of the new version in your browser and uploads it. The image shows in the Preview column, and the delivery API returns it as previewUrl.
previewUrl
Making it can fail, for example in a browser without WebGL. The row then offers Generate preview to try again. A lens too detailed to fit a 512 KiB image gets no preview. So treat the preview as optional: previewUrl can be null.
null
Screen effects have no preview images.
The delivery API gives you two ways to ask for an item:
GET /v1/lenses/:lensId
GET /v1/lenses/:lensId/versions/:version
Screen effects work the same way, under /v1/effects/.
/v1/effects/
See Delivery API.
If a new version has a problem, you can send apps back to an older one without publishing again. In the Versions tab, choose Make live… on that version and confirm. The latest route then answers with it, and apps get it on their next check. No new version number is made.
Archive is in the More actions (⋯) menu of the studio header. After you confirm, the item becomes read-only: it can't be edited or renamed.
An archived item keeps serving. The latest route still answers with its live version, and its pinned versions still answer. Apps that already use it keep working.
To work on it again, choose Un-archive in the same menu. An item with published versions goes live again (it counts toward your plan's live items); one never published goes back to a draft.
Delete… is in the More actions (⋯) menu of the studio header or of its card in the list. It moves the item to the workspace's recycle bin, with no typing. The item stops loading in apps at once.
The Recycle bin page in the sidebar keeps the item for 30 days. Restore puts it back as it was. Delete forever… (Owners, type DELETE) removes the draft, every version and every stored file. After 30 days an item is deleted forever automatically. The latest and pinned routes answer 404 for a deleted item, as for an id that never existed. Phones that already downloaded it keep their copy.
404
To clear out several items at once, select them in a library and choose Move to bin (live items are skipped) or Archive (only live items are archived). In the recycle bin, tick items and choose Restore or Delete forever… to act on them together.
Important: Deleting forever can't be undone.
In the Versions tab, Owners can delete any version except the newest and the live one, by typing DELETE. Apps pinned to that version get 404 at once. Its number is never used again.
A deleted version waits 30 days. It moves to the Deleted versions group of the tab, which says who deleted it and when it will be deleted forever. Until then an Owner can choose Restore, and it answers again. After 30 days it is deleted forever with its files.
If your workspace gets a rule profile later, versions that are already published are not checked again. The rules apply from the next Validate or Publish. See Rules and keep-out zones.