# com.livtet.giveaway.extend

> Move a giveaway's closing date later, as its author. The AppView records the date it verified and rejects a record whose date disagrees, which is what stops a hand-edited record from ending a giveaway early. The caller authenticates with an atproto service token minted by their own PDS.

- Kind: procedure
- Authority: giveaway.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.extend)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.extend/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.extend/analytics)

## Procedure (`com.livtet.giveaway.extend`)

Type: procedure · POST

### Input (application/json)

- `closesAt` (string · datetime, required)
- `giveaway` (string · at-uri, required)

### Output (application/json)

- `closesAt` (string · datetime, required): The date the AppView now verifies. A caller must write exactly this into the record.
- `giveaway` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Move a giveaway's closing date later, as its author. The AppView records the date it verified and rejects a record whose date disagrees, which is what stops a hand-edited record from ending a giveaway early. The caller authenticates with an atproto service token minted by their own PDS.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closesAt": {
              "format": "datetime",
              "type": "string"
            },
            "giveaway": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "giveaway",
            "closesAt"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closesAt": {
              "description": "The date the AppView now verifies. A caller must write exactly this into the record.",
              "format": "datetime",
              "type": "string"
            },
            "giveaway": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "giveaway",
            "closesAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.livtet.giveaway.extend",
  "lexicon": 1
}
```
