Beta

일정 수정

PATCHhttps://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

본문

namestring

1-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를 반환합니다.