# Update post

## Update post

> Returns an id of the updated post

```json
{"openapi":"3.1.0","info":{"title":"Ocoya API","version":"1.1.0"},"servers":[{"url":"https://app.ocoya.com/api/_public/v1"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"paths":{"/post/{postId}":{"patch":{"summary":"Update post","description":"Returns an id of the updated post","parameters":[{"in":"path","name":"postId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledAt":{"type":"string"}}}}}},"responses":{"200":{"description":"Success"},"500":{"description":"Unknown error"}}}}}}
```

### Body parameters explained

<table data-full-width="true"><thead><tr><th width="179">Parameter</th><th width="125">Type</th><th width="197">Required</th><th>Information</th></tr></thead><tbody><tr><td>scheduledAt</td><td>string</td><td>no</td><td>Date of the schedule (must follow <a href="../../fundamentals/limitations/date-limitations">Date limitations</a>)</td></tr></tbody></table>

### Sample response

{% code lineNumbers="true" fullWidth="true" expandable="true" %}

```json
{}
```

{% endcode %}
