템플릿을 삭제

Request

DELETE https://api.coolsms.co.kr/kakao/v1/templates/:templateId

템플릿을 삭제합니다.

Authorization 인증 필요 [?]

계정 권한

회원 권한

계정 상태

회원 상태

계정 인증

kakao:write

role-kakao:write

ACTIVE

ACTIVE

O

Path Parameters

Name

Description

:templateId

템플릿 고유 아이디

Samples

deleteTemplate.spec.js

Sample Request

{}

Sample Response

{
    "isHidden": false,
    "accountId": "12925149",
    "templateId": "KA01TP210129012914465FfIIh5zPTPW",
    "name": "A0",
    "pfId": "PF01ID210129012914461s6mNraOHs9g",
    "content": "#{홍길동}님 회원가입을 환영 합니다.",
    "dateCreated": "2021-01-29T01:29:14.694Z",
    "dateUpdated": "2021-01-29T01:29:14.694Z",
    "codes": [
        {
            "status": "PENDING",
            "service": "biz",
            "code": "bizp_20190312165039251028888880",
            "comments": []
        },
        {
            "status": "PENDING",
            "service": "daou",
            "code": "bizp_20190312165039251028888880",
            "comments": []
        }
    ],
    "buttons": [],
    "status": "DELETED"
}

Sample Code

var request = require('request');

var options = {
  headers: {
    Authorization:
      'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
  },
  method: 'DELETE',
  json: true,
  url:
    'http://api.coolsms.co.kr/kakao/v1/templates/KA01TP210129012914465FfIIh5zPTPW'
};

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

문서 생성일 : 2021-01-29

Last updated