일정 수정
PATCH
https://api.youvico.com/api/project-schedules/:id- 요청 제한
- Default
- API 권한
- schedules:write
프로젝트 일정을 수정합니다. 보낸 필드만 변경됩니다.
예시
curl -X PATCH 'https://api.youvico.com/api/project-schedules/5f2c8a1e-3b4d-4e6f-9a7b-1c2d3e4f5a6b' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "endDate": "2026-06-02", "endTime": "12:00", "color": "RED" }'
요청
curl -X PATCH 'https://api.youvico.com/api/project-schedules/5f2c8a1e-3b4d-4e6f-9a7b-1c2d3e4f5a6b' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"endDate": "2026-06-02",
"endTime": "12:00",
"color": "RED"
}'
응답204 No Content
요청
경로
idstringrequired일정 ID
본문
namestring1-255 characters
일정 이름
descriptionstring?1-1000 characters
일정 설명. null이면 삭제
startDatestring시작 날짜. YYYY-MM-DD
startTimestring?시작 시각. HH:mm, 종일 일정이면 null
endDatestring?종료 날짜. YYYY-MM-DD, 시작 날짜에 끝나면 null
예시: 2026-06-02
endTimestring?종료 시각. HH:mm 또는 null
예시: 12:00
colorstring일정 색상
가능한 값: NONEREDORANGEYELLOWGREENBLUEPURPLEPINKGRAY
예시: RED
참고
보낸 값을 기존 일정에 반영한 결과가 다음 조건을 모두 만족해야 합니다.
startTime이null이면endTime도null이어야 합니다.startTime과endDate가 있으면endTime도 있어야 합니다.endDate는startDate보다 뒤 날짜여야 합니다. 시작 날짜에 끝나는 일정은endDate를null로 보내고endTime만 지정합니다.- 종료는 시작보다 뒤여야 합니다.
응답
204 No Content를 반환합니다.