# create-template - CAROUSEL

**POST** `/api/v1/create-template`

Product: [RCS](https://devdocs.pinnacle.in/docs/rcs.md)  
Version: [1.0](https://devdocs.pinnacle.in/docs/rcs/1-0.md)

## Request

URL: `https://api.example.com/rcs/api/v1/create-template`

Authentication location: `none`

Authentication name: `none`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "botId": {
      "type": "string"
    },
    "templateName": {
      "type": "string"
    },
    "templateType": {
      "type": "string"
    },
    "botMessageType": {
      "type": "string"
    },
    "isSMSFallbackRequired": {
      "type": "boolean"
    },
    "richCardCarouselDetails": {
      "type": "object",
      "properties": {
        "cardWidth": {
          "type": "string"
        },
        "cardsList": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "cardId": {
                "type": "string"
              },
              "cardMedia": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  }
                }
              },
              "cardTitle": {
                "type": "string"
              },
              "mediaType": {
                "type": "string"
              },
              "cardDescription": {
                "type": "string"
              },
              "suggestionsList": {
                "type": "array",
                "items": {}
              }
            }
          }
        },
        "mediaHeight": {
          "type": "string"
        }
      }
    }
  }
}
```

### Request example


```json
{
  "botId": "68218acedb298103bc8d5931",
  "templateName": "11_pdf_dy",
  "templateType": "carousel",
  "botMessageType": "PROMOTIONAL",
  "isSMSFallbackRequired": false,
  "richCardCarouselDetails": {
    "cardWidth": "SMALL_WIDTH",
    "cardsList": [
      {
        "cardId": "123",
        "cardMedia": {
          "url": "https://rcs-bot-media-public.s3.ap-south-1.amazonaws.com/665873c0c660399dce731130/6690deca0e202b00019c034d/6892f51ec1bc06845cbf4e42/[pdf]"
        },
        "cardTitle": "Greetings",
        "mediaType": "pdf",
        "cardDescription": "Greetings !",
        "suggestionsList": []
      },
      {
        "cardId": "123",
        "cardMedia": {
          "url": "https://rcs-bot-media-public.s3.ap-south-1.amazonaws.com/66979a3cde3d1114698a2fc2/669a4ba982ab2f0001956969/66a0e437c7dc530001d8be8b/carouselCardMedia_0_1721820215352_Discount.png"
        },
        "cardTitle": "Greetings",
        "mediaType": "image",
        "cardDescription": "Greetings !",
        "suggestionsList": []
      }
    ],
    "mediaHeight": "SHORT_HEIGHT"
  }
}
```

## Response schema


```json
{}
```

## Response examples


```json
{}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "Successful response"
  }
]
```
