그룹 메시지 삭제

Request

DELETE https://api.coolsms.co.kr/messages/v4/groups/:groupId/messages

그룹에 속한 메시지 일부분을 삭제합니다.

Authorization 인증 필요 [?]

계정 권한

회원 권한

계정 상태

회원 상태

계정 인증

message:write

role-message:write

ACTIVE

ACTIVE

Path Parameters

Name

Description

:groupId

메시지 그룹 아이디

Request Structure

{
    "messageIds": "array"
}

Body Params

Name

Type

Required

Description

messageIds

array

O

메시지 아이디 목록

Samples

DELETE /messages/v4/groups/{groupId}/messages

Sample Request

{
    "messageIds": [
        "M4V20200308120044DTYYJBBYLPQZIB1"
    ]
}

Sample Response

{
    "groupId": "G4V20180307105937H3PTASXMNJG2JIB",
    "errorCount": 0,
    "resultList": [
        {
            "messageId": "M4V20200308120044DTYYJBBYLPQZIB1",
            "resultCode": "Success"
        }
    ]
}

Sample Code

var request = require('request');

var options = {
  headers: {
    Authorization:
      'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
    'Content-Type': 'application/json'
  },
  body: {
    messageIds: 'M4V20200308120044DTYYJBBYLP...'
  },
  method: 'DELETE',
  json: true,
  url:
    'http://api.coolsms.co.kr/messages/v4/groups/G4V20180307105937H3PTASXMNJG2JIB/messages'
};

request(options, function(error, response, body) {
  if (error) throw error;
  console.log('result :', body);
});

문서 생성일 : 2021-07-14

Last updated