> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Recurrence Rule

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Playout Scheduler",
    "description": "",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/scheduler/v2/recurrence_rules": {
      "post": {
        "summary": "Create Recurrence Rule",
        "description": "",
        "tags": [
          "Recurrence Rules"
        ],
        "operationId": "createRecurrenceRule",
        "x-codegen-request-body-name": "recurrenceRule",
        "requestBody": {
          "description": "",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "title": "RecurrenceRuleRequest",
                "required": [
                  "recurrenceRule"
                ],
                "properties": {
                  "recurrenceRule": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "description": "Determine the title of the rule"
                      },
                      "channelId": {
                        "type": "string",
                        "description": "Specify the channel id"
                      },
                      "active": {
                        "type": "boolean",
                        "description": "Specify if rule will be active or not."
                      },
                      "assetId": {
                        "type": "string",
                        "description": "Specify the asset, that needs to be used for the rule"
                      },
                      "assetType": {
                        "type": "string",
                        "description": "Specify the type of asset, for which rule is being applied"
                      },
                      "startDate": {
                        "type": "string",
                        "description": "Specify the start date from when recurrence rule will be applied"
                      },
                      "endDate": {
                        "type": "string",
                        "description": "Specify the end date when recurrence rule will end"
                      },
                      "trackName": {
                        "type": "string",
                        "default": "baseTrack",
                        "enum": [
                          "baseTrack",
                          "priorityTrack"
                        ],
                        "description": "Track name on which assets should be dropped for the rule."
                      },
                      "repetition": {
                        "type": "object",
                        "properties": {
                          "time": {
                            "type": "string",
                            "description": "Specify the time in 24-hour format, at which the content will be scheduled"
                          },
                          "interval": {
                            "type": "array",
                            "description": "Specify the interval days on which rule will be applied",
                            "items": {
                              "type": "number"
                            }
                          },
                          "frequency": {
                            "type": "string",
                            "enum": [
                              "monthly",
                              "weekly"
                            ],
                            "description": "Specify the type of frequency monthly/weekly"
                          },
                          "zone": {
                            "type": "string",
                            "description": "Specify the timezone, based on which rule timing will be applied"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "RecurrenceRule",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "channelId": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "assetType": {
                      "type": "string"
                    },
                    "startDate": {
                      "type": "string"
                    },
                    "endDate": {
                      "type": "string"
                    },
                    "repetition": {
                      "type": "object",
                      "properties": {
                        "time": {
                          "type": "string"
                        },
                        "interval": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "frequency": {
                          "type": "string",
                          "enum": [
                            "monthly",
                            "weekly"
                          ]
                        },
                        "zone": {
                          "type": "string"
                        }
                      }
                    },
                    "trackName": {
                      "type": "string",
                      "enum": [
                        "baseTrack",
                        "priorityTrack"
                      ]
                    },
                    "assetTitle": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1scheduler~1v1~1types/get/responses/422/content/application~1json/schema"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  }
}
```