POST/api/user_themes/imports

Create a theme from a shared theme snippet

Decodes a /t/:token share link (the "Copy share link" button on a theme) through the same settings parse createUserTheme uses, and saves it under name.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 body fields
namestringrequired
Unique per account
tokenstringrequired
The token from a /t/:token share link, with or without the URL around it

3 status codes
200Created
dataobjectoptional
401Unauthorized
errorstringoptional
422name is missing

Error handling

A 401 is returned: Unauthorized. A 422 is returned: name is missing.