Method: Forms#schedule_form
- Defined in:
- lib/user/content/forms.rb
#schedule_form(id, data) ⇒ Object
Schedule form.
Schedule a form in a specified date.
Parameters
- id
-
(Integer) – Form id.
- data
-
(Hash) – Data to be submitted.
Example
data = {
scheduled_at: '2021-09-06T20:29:16+00:00'
}
@data = @mints_user.schedule_form(1, data.to_json)
53 54 55 56 |
# File 'lib/user/content/forms.rb', line 53 def schedule_form(id, data) # FIXME: Output cannot be processed. response cannot be converted to json. @client.raw('put', "/content/forms/#{id}/schedule", nil, data_transform(data)) end |