매체사 탈퇴 유저 데이터 파기 API

개요

매체사 서비스를 탈퇴한 유저의 개인정보 처리를 위해 버즈빌에 유저 데이터 파기 요청을 보내는 API입니다.

API 연동하기

URL: https://screen.buzzvil.com/api/delete_device/
METHOD: POST

Request Header

{ "Content-Type": "application/json", "Authorization": "Token 000980073e0cae95b29c45deb824ce0a76390446" }
  • help@buzzvil.com로 token 생성 요청

Request Body (application/json)

  • json의 root type은 list [ ]

  • list 바로 밑의 데이터는 object { }

  • object는 아래와 같이 구성

    • key: app_id , value: 매체사가 가진 app_id

    • key: user_ids, value: 삭제하려는 user_id의 list

Example

[ { "app_id": 10029111, "user_ids": [ "user_id_1", "user_id_2", "user_id_3"] }, { "app_id": 11192852, "user_ids": [ "user_id_5", "user_id_4", "user_id_1"] } ]

Response code

  • 200 OK: 정상 처리

  • 400 Bad Request

    • Content-Type must be application/json: Content-Type을 application/json이 아닌 다른 값으로 요청함

    • invalid json format: request body가 json format을 만족하지 못함

    • deletions must be list: root type이 list가 아님

    • deletion must be dict: list 밑에 붙어있는 데이터가 object가 아님

    • deletion has missing keys (app_id, user_ids): object들중에 app_id, user_ids를 key로 가지고 있지 않은 것이 있음

    • invalid app 1191221: app_id가 해당 매체사에서 접근할 수 없음

    • user_ids must be list: user_ids가 list가 아님

    • user_ids exceeds 1000 for the app {}: user_ids의 갯수가 1000개를 초과함

  • 403 Forbidden: header Authorization 필드가 없거나, Authorization값의 포맷이 잘못됨

  • 500: unknown error