# What is the syntax for function schedule?

**URL:** <https://forum.serverless.com/t/what-is-the-syntax-for-function-schedule/15521>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [July 9, 2021, 3:38am UTC](https://forum.serverless.com/t/what-is-the-syntax-for-function-schedule/15521 "2021-07-09T03:38:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrobens](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@jrobens](https://forum.serverless.com/u/jrobens)\
**Post date:** [July 9, 2021, 3:38am UTC](https://forum.serverless.com/t/what-is-the-syntax-for-function-schedule/15521/1 "2021-07-09T03:38:31Z")

</div>

How do I specify a schedule?

```auto

events: [
        {
            http: {
                path: 'expire',
                method: 'get',
                cors: true,
            },
            schedule: {
                name: 'expiry job',
                rate: "rate(1 hours)",
                enabled: true
            }
        }
    ],

```

This causes

```
Serverless: Configuration warning:
Serverless: at 'functions.expire.events[0]': unrecognized property 'http'
```
