템플릿 숨김 설정

Request

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

템플릿의 숨김 여부를 설정합니다.

Authorization 인증 필요 [?]

계정 권한

회원 권한

계정 상태

회원 상태

계정 인증

kakao:write

role-kakao:write

ACTIVE

ACTIVE

O

Path Parameters

Name

Description

:templateId

템플릿 고유 아이디

Request Structure

{
    "isHidden": "boolean"
}

Body Params

Name

Type

Required

Description

isHidden

boolean

O

설명 없음

Samples

hidTemplate.spec.js

Sample Request

{
    "isHidden": true
}

Sample Response

{
    "isHidden": true,
    "accountId": "12925149",
    "templateId": "KA01TP200923054509625rpI2FXLASpp",
    "name": "THISISNAME",
    "pfId": "KA01PF06981701923709182736123232",
    "codes": [
        {
            "status": "PENDING",
            "code": "bizp_201903121650392510222222",
            "service": "daou",
            "comments": []
        },
        {
            "status": "APPROVED",
            "comments": [],
            "code": "bizp_201903121650392510211111",
            "service": "biz"
        }
    ],
    "content": "#{홍길동}님 회원가입을 환영 합니다.",
    "dateCreated": "2021-01-29T01:29:15.439Z",
    "dateUpdated": "2021-01-29T01:29:15.445Z",
    "buttons": []
}

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: {
    isHidden: true
  },
  method: 'PUT',
  json: true,
  url:
    'http://api.coolsms.co.kr/kakao/v1/templates/KA01TP200923054509625rpI2FXLASpp/hide'
};

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

문서 생성일 : 2021-01-29

Last updated