Creates a new appointment recurrence

Parameters

active

Status to be set for the recurrence, active - 1 inactive -0

name

Textual description of the recurrence

copy_user

Should the user be copied to each job in the recurrence, yes - 1 no - 0

copy_cust_ref

Should the customer job reference be copied for each job in the recurrence, yes -1 no - 0

every

Frequency based on Weeks/Months/Years

on_arr

The Quantity of years/months/weeks, eg. every 1 month

expiry_date

What date should the recurrence end, YYYY-MM-DD

Example

FM_api('AppointmentRecurrence_create', ['active' => '1', 'name' => 'API TEST', 'copy_user' => '0', 'copy_cust_ref' => '1', 'every' => '3', 'on_arr' => '1' , 'expiry_date' => '2020-12-30'])

On Success

{"id":"55","name":"API TEST","ids":"","cdate":"2019-01-08","edate":"2020-12-30","active":"1","every":"0","on_arr":"360","customer_id":"0","customer_type":"0","next_date":null,"user_id":"0","notes":null,"files":null,"edited_uuid":"AppointmentRecurrence_create","last_edited":"2019-01-08 11:44:40","days_in_advance":"30","copy_user":null,"copy_cust_ref":null}