Posts
Update an existing post. Only draft, scheduled, and failed posts can be edited.
Authorization
bearerAuth AuthorizationBearer <token>
API key with fh_ prefix. Pass as Authorization: Bearer fh_...
In: header
Path Parameters
id*string
Request Body
application/json
content?string
platforms?array<>
scheduledFor?string
Format
date-timetimezone?string
Response Body
application/json
application/json
application/json
curl -X PATCH "https://app.feedhorizon.dev/api/v1/posts/string" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": "string",
"content": "string",
"status": "DRAFT",
"publishMode": "schedule",
"scheduledAt": "2019-08-24T14:15:22Z",
"timezone": "Europe/Berlin",
"publishedAt": "2019-08-24T14:15:22Z",
"platforms": [
"linkedin"
],
"platformPostIds": {
"property1": "string",
"property2": "string"
},
"errorMessage": "string",
"profileId": "string",
"userId": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"media": [
{
"id": "string",
"postId": "string",
"url": "string",
"storagePath": "string",
"type": "string",
"filename": "string",
"sizeBytes": 0,
"sortOrder": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
]
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "string",
"details": [
{
"field": "string",
"message": "string"
}
]
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "string",
"details": [
{
"field": "string",
"message": "string"
}
]
}
}