getTemplateStructure
    • PDF

    getTemplateStructure

    • PDF

    Article Summary

    템플릿 및 카테고리 구조를 조회합니다.

    GET https://{endpoint}/template
    

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    isUseNoBooleanDefault: 전체 조회사용 중인 것만 조회할지 여부

    응답

    HTTP 상태코드설명
    200템플릿 및 카테고리 구조 조회 완료
    400인증 실패, 잘못된 요청
    500서버 오류

    예시

    요청 예시

    GET https://mail.apigw.ntruss.com/api/v1/template?isUse=true
    

    응답 예시

    {
      "contents": [
        {
          "sid": 261,
          "parentSid": -1,
          "createDate": {
            "utc": 1589355820663,
            "formattedDate": "2020-05-13",
            "formattedDateTime": "2020-05-13 16:43:40 663"
          },
          "name": "AD",
          "isCategory": true,
          "isUse": true,
          "subCategories": null,
          "templates": [
            {
              "sid": 262,
              "parentSid": 261,
              "createDate": {
                "utc": 1589355868201,
                "formattedDate": "2020-05-13",
                "formattedDateTime": "2020-05-13 16:44:28 201"
              },
              "name": "AD_Template",
              "isCategory": false,
              "isUse": true,
              "subCategories": null,
              "templates": null
            }
          ]
        }
      ]
    }
    

    속성

    항목필수 여부타입제약 사항설명
    contentsNoList<TemplateStructureResponse>템플릿 및 카테고리 상세 구조

    오류 코드

    HTTP Status Code리턴 코드응답 메시지
    40077101로그인 정보 오류
    40077102BAD_REQUEST
    40077103리소스가 존재하지 않음
    40377201권한 없음
    40377202Email 상품 사용신청 하지 않음
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301기본 프로젝트가 존재하지 않음
    50077302외부 시스템 API 연동 오류
    50077303그외 INTERNAL_SERVER_ERROR

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.