Update form
PUT
/ admin/ v1/ stores/ {store_id}/ signup-forms/ {form_id}- customers:write
Replaces a form.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.form_idstringrequiredThe form's ID, like
suf_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredkindenumrequired- popup
- embedded
statusenumrequired- draft
- live
wordsobjectrequiredIts words in each language, by locale.
deliveryenumrequiredWhether a reward's code shows on the spot, or only goes by email, which means the address is real.
- show
ask_namebooleanask_phonebooleandiscount_idstring · or nullThe discount it rewards with: unique codes give each address its own.
Returns
200 The form.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such form. - 412
precondition_failedIt changed since it was read. - 422
validation_failedInvalid fields.