Update post
curl --request PATCH \
--url https://api.autoadify.com/v1/posts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"publishAt": "2023-11-07T05:31:56Z",
"contentByPlatform": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', publishAt: '2023-11-07T05:31:56Z', contentByPlatform: {}})
};
fetch('https://api.autoadify.com/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/posts/{id}"
payload = {
"content": "<string>",
"publishAt": "2023-11-07T05:31:56Z",
"contentByPlatform": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "scheduled",
"content": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"channels": [
{
"channelId": "<string>",
"platform": "<string>",
"status": "draft",
"content": "<string>",
"platformPostId": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"media": [
{
"id": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"reddit": {
"subreddit": "<string>",
"title": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Posts
Update post
Edits a scheduled post’s text, per-platform text or publish time.
Requires the publish scope.
PATCH
/
posts
/
{id}
Update post
curl --request PATCH \
--url https://api.autoadify.com/v1/posts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"publishAt": "2023-11-07T05:31:56Z",
"contentByPlatform": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', publishAt: '2023-11-07T05:31:56Z', contentByPlatform: {}})
};
fetch('https://api.autoadify.com/v1/posts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/posts/{id}"
payload = {
"content": "<string>",
"publishAt": "2023-11-07T05:31:56Z",
"contentByPlatform": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "scheduled",
"content": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"channels": [
{
"channelId": "<string>",
"platform": "<string>",
"status": "draft",
"content": "<string>",
"platformPostId": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"media": [
{
"id": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"reddit": {
"subreddit": "<string>",
"title": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Authorizations
An API key from Autoadify → Settings → Developers, sent as Authorization: Bearer aak_live_….
Path Parameters
Post id.
Body
application/json
Response
The updated post.
Available options:
scheduled, publishing, published, failed "api" for posts created here, "app" for the Autoadify app.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes

