API Reference · 사용자 콘텐츠 데이터

사용자 콘텐츠 데이터 삭제

세션 유저의 콘텐츠 K/V 데이터 단건을 삭제합니다. 스코프는 토큰의 (user, content) 로 강제되며 본인 데이터만 삭제할 수 있습니다.

DELETE/api/v1/contents/{content_id}/data/{namespace}/{key}

요청 파라미터

  • content_id (path, uuid, required) — 콘텐츠 ID. 세션 토큰의 콘텐츠와 일치해야 합니다.
  • namespace (path, string, required) — 분류 키 (예: save, settings).
  • key (path, string, required) — 항목 키.

요청예시

shell
curl -X DELETE \
  -H "Authorization: Bearer sess_prod_0192a1b2-3c4d-7e8f-9012-3456789abcde" \
  "https://added.blomics.net/api/v1/contents/{content_id}/data/save/level"

응답 필드

204 No Content — 본문 없음. 본인 스코프의 키가 삭제됐음을 의미합니다.

응답예시

shell
HTTP/1.1 204 No Content

에러처리

  • 400 INVALID_PARAM content_id 형식 오류, namespace/key 규칙 위반.
  • 401 UNAUTHORIZED — 인증 실패.
  • 404 NOT_FOUND — 세션 토큰의 콘텐츠와 불일치(404 은닉), 또는 삭제 대상 키 없음.
  • 500 INTERNAL_ERROR — 서버 오류.