# Create attachment for appointment This endpoint is used to upload attachment documents related to the appointment for the provider to view. Only documents of type jpg, png, pdf, and docx are supported. Documents must be less than 10MB. You may not upload attachments to appointments in a failed state or over 7 days after the appointment. Endpoint: POST /v1/appointments/{appointment_id}/attachments Version: 1.22 Security: ClientCredentialsFlow, AuthorizationCodeFlow ## Path parameters: - `appointment_id` (string, required) ## Request fields (multipart/form-data): - `attachment` (string, required) - `attachment_type` (string, required) Enum: "community_care_packet", "pcp_patient_referral" ## Response 200 fields (application/json): - `request_id` (string, required) - `data` (object, required) - `data.appointment_id` (string, required) - `data.attachments` (array, required) - `data.attachments.attachment_type` (string, required) Enum: "community_care_packet", "pcp_patient_referral" ## Response 400 fields (application/json): - `request_id` (string, required) - `error_type` (string, required) Enum: "api_error", "invalid_request" - `errors` (array, required) - `errors.field` (string) - `errors.message` (string, required) ## Response 404 fields (application/json): - `request_id` (string, required) - `error_type` (string, required) Enum: "api_error", "invalid_request" - `errors` (array, required) - `errors.field` (string) - `errors.message` (string, required)