Skip to content

Instantly share code, notes, and snippets.

@movstox
Last active August 13, 2021 14:41
Show Gist options
  • Save movstox/5c9c8b65aced89bfab0b99737a477a9b to your computer and use it in GitHub Desktop.
Save movstox/5c9c8b65aced89bfab0b99737a477a9b to your computer and use it in GitHub Desktop.
BAPP-13560
# params: AV w/o piece (destroy)
{
"utf8"=>"✓",
"_method"=>"patch",
"mode"=>"cal",
"start_date"=>"2021-08-17",
"ovrd"=>"0",
"dr"=>"0",
"volunteers_availability"=>{
"is_approved"=>"true",
"approved_by_id"=>"5",
"admin_reject_reason"=>"",
"tenant_availability_type_id"=>"1",
"whole_day"=>"1",
"starts_at"=>"2021-08-17",
"start_time"=>"00:00",
"ends_at"=>"2021-08-17",
"end_time"=>"00:00",
"split_and_keep_old_entry"=>"",
"remark_by_collaborator"=>"",
"evidence_entries_attributes"=>{
"0"=>{
"file_cache"=>"",
"remove_file"=>"",
"_destroy"=>"1",
"id"=>"9"}
}
},
"presenter_for_volunteers_availability"=>{"starts_at"=>"17/08/2021",
"start_time"=>"00:00",
"ends_at"=>"17/08/2021",
"end_time"=>"00:00"},
"controller"=>"admin/volunteers/availabilities",
"action"=>"update",
"locale"=>"en",
"volunteer_id"=>"2",
"id"=>"7"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment