{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule","description":"An instance of a PlanPerson with included data for displaying in a user's schedule","example":"{\"type\":\"Schedule\",\"id\":\"1\",\"attributes\":{\"can_accept_partial\":true,\"can_accept_partial_one_time\":true,\"can_rehearse\":true,\"dates\":\"string\",\"decline_reason\":\"string\",\"organization_name\":\"string\",\"organization_time_zone\":\"string\",\"organization_twenty_four_hour_time\":\"string\",\"person_name\":\"string\",\"plan_visible\":true,\"plan_visible_to_me\":true,\"position_display_times\":\"string\",\"reschedule_declines\":\"string\",\"responds_to_name\":\"string\",\"service_type_name\":\"string\",\"short_dates\":\"string\",\"sort_date\":\"2000-01-01T12:00:00Z\",\"status\":\"string\",\"team_name\":\"string\",\"team_position_name\":\"string\"},\"relationships\":{\"person\":{\"data\":{\"type\":\"Person\",\"id\":\"1\"}},\"service_type\":{\"data\":{\"type\":\"ServiceType\",\"id\":\"1\"}},\"organization\":{\"data\":{\"type\":\"Organization\",\"id\":\"1\"}},\"plan_person\":{\"data\":{\"type\":\"PlanPerson\",\"id\":\"1\"}},\"plan\":{\"data\":{\"type\":\"Plan\",\"id\":\"1\"}},\"team\":{\"data\":{\"type\":\"Team\",\"id\":\"1\"}},\"responds_to_person\":{\"data\":{\"type\":\"Person\",\"id\":\"1\"}},\"times\":{\"data\":[{\"type\":\"PlanTime\",\"id\":\"1\"}]}}}","path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules","collection_only":false,"resource_only":false,"deprecated":false},"relationships":{"attributes":{"data":[{"type":"Attribute","attributes":{"name":"can_accept_partial","type_annotation":{"name":"boolean","example":true},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"can_accept_partial_one_time","type_annotation":{"name":"boolean","example":true},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"can_rehearse","type_annotation":{"name":"boolean","example":true},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"dates","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"decline_reason","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"id","type_annotation":{"name":"primary_key","example":"primary_key"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"organization_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"organization_time_zone","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"organization_twenty_four_hour_time","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"person_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"plan_visible","type_annotation":{"name":"boolean","example":true},"note":null,"permission_level":"public","description":"True if the scheduled Plan is visible to the scheduled Person"}},{"type":"Attribute","attributes":{"name":"plan_visible_to_me","type_annotation":{"name":"boolean","example":true},"note":null,"permission_level":"public","description":"True if the scheduled Plan is visible to the current Person"}},{"type":"Attribute","attributes":{"name":"position_display_times","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"reschedule_declines","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"responds_to_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"service_type_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"short_dates","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"sort_date","type_annotation":{"name":"date_time","example":"2000-01-01T12:00:00Z"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"status","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"team_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}},{"type":"Attribute","attributes":{"name":"team_position_name","type_annotation":{"name":"string","example":"string"},"note":null,"permission_level":"public","description":null}}]},"relationships":{"data":[{"type":"Relationship","id":"person","attributes":{"association":"to_one","name":"person","authorization_level":"public","graph_type":"Person","polymorphic":null,"note":null}},{"type":"Relationship","id":"service_type","attributes":{"association":"to_one","name":"service_type","authorization_level":"public","graph_type":"ServiceType","polymorphic":null,"note":null}},{"type":"Relationship","id":"organization","attributes":{"association":"to_one","name":"organization","authorization_level":"public","graph_type":"Organization","polymorphic":null,"note":null}},{"type":"Relationship","id":"plan_person","attributes":{"association":"to_one","name":"plan_person","authorization_level":"public","graph_type":"PlanPerson","polymorphic":null,"note":null}},{"type":"Relationship","id":"plan","attributes":{"association":"to_one","name":"plan","authorization_level":"public","graph_type":"Plan","polymorphic":null,"note":null}},{"type":"Relationship","id":"team","attributes":{"association":"to_one","name":"team","authorization_level":"public","graph_type":"Team","polymorphic":null,"note":null}},{"type":"Relationship","id":"responds_to_person","attributes":{"association":"to_one","name":"responds_to_person","authorization_level":"public","graph_type":"Person","polymorphic":null,"note":null}},{"type":"Relationship","id":"times","attributes":{"association":"to_many","name":"times","authorization_level":"public","graph_type":"PlanTime","polymorphic":null,"note":null}}]},"permissions":{"data":{"type":"Permissions","attributes":{"can_create":false,"can_update":false,"can_destroy":false,"read":null}}},"actions":{"data":[{"type":"Action","attributes":{"name":"accept","path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules/{schedule_id}/accept","can_run":null,"description":"Accept a Schedule","details":"If this isn't a split time schedule, or you want to accept all times, an empty JSON body is accepted.\n\nIf the user wants to decline specific times you'll need to send the declined time IDs & a reason.\n\nA POST body should be formated...\n\n```json\n{\n  \"data\": {\n    \"type\": \"ScheduleAccept\",\n    \"attributes\": {\n      \"reason\": \"Because reasons\"\n    },\n    \"relationships\": {\n      \"declined_plan_times\": {\n        \"data\": [\n          {\n            \"type\": \"PlanTime\",\n            \"id\": \"1\"\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\n### Proposing a replacement\n\nWhen every time is declined the request falls through to the decline flow, and the optional `replacement_id` and `replacement_confirmed` attributes may be included. When the team is configured to reschedule declines with a volunteer replacement and `replacement_id` is present, the decline initiates the replacement workflow (contacting the chosen person). `replacement_confirmed` indicates whether the replacement has already agreed to fill in — skipping the confirmation step when true.\n\n`replacement_id` is the `account_center_id` of the proposed replacement.\n\n```json\n{\n  \"data\": {\n    \"type\": \"ScheduleAccept\",\n    \"attributes\": {\n      \"reason\": \"Because reasons\",\n      \"replacement_id\": \"123\",\n      \"replacement_confirmed\": true\n    },\n    \"relationships\": {\n      \"declined_plan_times\": {\n        \"data\": [\n          {\n            \"type\": \"PlanTime\",\n            \"id\": \"1\"\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\nNote: `replacement_id` is not validated against a list of eligible replacements; any person in the organization may be submitted. The calling UI is responsible for presenting an appropriate list, matching the existing volunteer-chooses-their-own-replacement flow.\n","return_type":null,"example_body":null,"deprecated":false},"relationships":{"tail":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule","description":"An instance of a PlanPerson with included data for displaying in a user's schedule"}}},"rate_limits":{"data":[]}}},{"type":"Action","attributes":{"name":"decline","path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules/{schedule_id}/decline","can_run":null,"description":"Decline a Schedule","details":"If this is a split time request, all times will be declined.\n\nIf you want to decline specific times see ScheduleAcceptAction.\n\nA POST body should be formated...\n\n```json\n{\n  \"data\": {\n    \"type\": \"ScheduleDecline\",\n    \"attributes\": {\n      \"reason\": \"A user supplied reason for declining the request or an empty string.\"\n    },\n    \"relationships\": null\n  }\n}\n```\n\n### Proposing a replacement\n\nThe optional `replacement_id` and `replacement_confirmed` attributes may be included on a decline. When the team is configured to reschedule declines with a volunteer replacement and `replacement_id` is present, the decline initiates the replacement workflow (contacting the chosen person). `replacement_confirmed` indicates whether the replacement has already agreed to fill in — skipping the confirmation step when true.\n\n`replacement_id` is the `account_center_id` of the proposed replacement.\n\n```json\n{\n  \"data\": {\n    \"type\": \"ScheduleDecline\",\n    \"attributes\": {\n      \"reason\": \"A user supplied reason for declining the request or an empty string.\",\n      \"replacement_id\": \"123\",\n      \"replacement_confirmed\": true\n    },\n    \"relationships\": null\n  }\n}\n```\n\nNote: `replacement_id` is not validated against a list of eligible replacements; any person in the organization may be submitted. The calling UI is responsible for presenting an appropriate list, matching the existing volunteer-chooses-their-own-replacement flow.\n","return_type":null,"example_body":null,"deprecated":false},"relationships":{"tail":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule","description":"An instance of a PlanPerson with included data for displaying in a user's schedule"}}},"rate_limits":{"data":[]}}}]},"outbound_edges":{"data":[{"type":"Edge","id":"plantime-schedule-declined_plan_times","attributes":{"name":"declined_plan_times","details":null,"path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules/{schedule_id}/declined_plan_times","filters":[],"scopes":[],"deprecated":false},"relationships":{"head":{"data":{"type":"Vertex","id":"plan_time","attributes":{"name":"PlanTime"}}},"tail":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule"}}},"rate_limits":{"data":[]},"pagination":{"data":[{"type":"URLParameter","attributes":{"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"Maximum number of records per page"}},{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"Pagination offset"}}]}}},{"type":"Edge","id":"plantime-schedule-plan_times","attributes":{"name":"plan_times","details":null,"path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules/{schedule_id}/plan_times","filters":[],"scopes":[],"deprecated":false},"relationships":{"head":{"data":{"type":"Vertex","id":"plan_time","attributes":{"name":"PlanTime"}}},"tail":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule"}}},"rate_limits":{"data":[]},"pagination":{"data":[{"type":"URLParameter","attributes":{"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"Maximum number of records per page"}},{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"Pagination offset"}}]}}},{"type":"Edge","id":"team-schedule-team","attributes":{"name":"team","details":null,"path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules/{schedule_id}/team","filters":[],"scopes":[],"deprecated":false},"relationships":{"head":{"data":{"type":"Vertex","id":"team","attributes":{"name":"Team"}}},"tail":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule"}}},"rate_limits":{"data":[]},"pagination":{"data":[{"type":"URLParameter","attributes":{"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"Maximum number of records per page"}},{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"Pagination offset"}}]}}}]},"inbound_edges":{"data":[{"type":"Edge","id":"schedule-person-schedules","attributes":{"name":"schedules","details":null,"path":"https://api.planningcenteronline.com/services/v2/people/{person_id}/schedules","filters":["after","all","before","future","not_across_organizations","past","with_declined"],"scopes":[{"name":"after","scope_help":"Fetch schedules after the included `after` iso8601 date param. e.g. `?filter=after&after=2020-01-01T00:00:00Z`"},{"name":"all","scope_help":null},{"name":"before","scope_help":"Fetch schedules before the included `before` iso8601 date param. e.g. `?filter=before&before=2020-01-01T00:00:00Z`"},{"name":"future","scope_help":null},{"name":"not_across_organizations","scope_help":null},{"name":"past","scope_help":null},{"name":"with_declined","scope_help":null}],"deprecated":false},"relationships":{"head":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule"}}},"tail":{"data":{"type":"Vertex","id":"person","attributes":{"name":"Person"}}},"rate_limits":{"data":[]},"pagination":{"data":[{"type":"URLParameter","attributes":{"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"Maximum number of records per page"}},{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"Pagination offset"}}]}}},{"type":"Edge","id":"schedule-plan-my_schedules","attributes":{"name":"my_schedules","details":null,"path":"https://api.planningcenteronline.com/services/v2/service_types/{service_type_id}/plans/{plan_id}/my_schedules","filters":[],"scopes":[],"deprecated":false},"relationships":{"head":{"data":{"type":"Vertex","id":"schedule","attributes":{"name":"Schedule"}}},"tail":{"data":{"type":"Vertex","id":"plan","attributes":{"name":"Plan"}}},"rate_limits":{"data":[]},"pagination":{"data":[{"type":"URLParameter","attributes":{"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"Maximum number of records per page"}},{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"Pagination offset"}}]}}}]},"can_include":{"data":[{"type":"URLParameter","attributes":{"can_assign_on_create":false,"can_assign_on_update":false,"name":"plan_times","parameter":"include","type":"string","value":"plan_times","description":"include associated plan_times"}}]},"can_order":{"data":[{"type":"URLParameter","attributes":{"name":"starts_at","parameter":"order","type":"string","value":"starts_at","description":"prefix with a hyphen (-starts_at) to reverse the order"}}]},"can_query":{"data":[{"type":"URLParameter","attributes":{"example":"?where[plan_id]=1","name":"plan_id","parameter":"where[plan_id]","type":"integer","value":null,"description":"Query on a related plan"}}]},"per_page":{"data":{"type":"URLParameter","attributes":{"minimum":1,"maximum":100,"default":25,"name":"per_page","parameter":"per_page","type":"integer","value":null,"description":"how many records to return per page (min=1, max=100, default=25)"}}},"offset":{"data":{"type":"URLParameter","attributes":{"name":"offset","parameter":"offset","type":"integer","value":null,"description":"get results from given offset"}}},"rate_limits":{"data":[]}}}}