Schedule Discussion
curl --request PUT \
--url https://api.member.dev/api/v1/discussions/{discussion_id}/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{}'import requests
url = "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({})
};
fetch('https://api.member.dev/api/v1/discussions/{discussion_id}/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.member.dev/api/v1/discussions/{discussion_id}/schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/discussions/{discussion_id}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"attachments": [
{
"id": "<string>",
"media_id": "<string>",
"role": "<string>",
"asset_kind": "<string>",
"file_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"status_upload": "<string>",
"thumbnail_url": "<string>",
"thumbnail_url_expires_at": "<string>",
"url": "<string>",
"url_expires_at": "<string>"
}
],
"author_contact_id": "<string>",
"author_display_name": "<string>",
"author_photo_thumbnail_url": "<string>",
"author_photo_thumbnail_url_expires_at": "2023-11-07T05:31:56Z",
"author_photo_url": "<string>",
"author_photo_url_expires_at": "2023-11-07T05:31:56Z",
"body": "<string>",
"comment_count": 123,
"created_at": "<string>",
"deleted_at": "<string>",
"external_video_embeds": [
{}
],
"hub_id": "<string>",
"is_broadcast": true,
"is_locked": true,
"is_pinned": true,
"is_published": true,
"last_activity_at": "<string>",
"poll": {
"closed": true,
"deadline_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>",
"position": 123,
"vote_count": 123
}
],
"total_votes": 123,
"viewer_option_id": "<string>",
"viewer_voted": true
},
"published_at": "<string>",
"reaction_count": 123,
"reactions": [
"<unknown>"
],
"report_count": 0,
"reported_by_me": false,
"repost": {
"author_display_name": "<string>",
"author_photo_thumbnail_url": "<string>",
"author_photo_url": "<string>",
"body": "<string>",
"id": "<string>",
"published_at": "<string>",
"space_name": "<string>",
"space_slug": "<string>",
"title": "<string>"
},
"repost_count": 123,
"scheduled_at": "<string>",
"space_id": "<string>",
"status": "<string>",
"team_id": "<string>",
"title": "<string>",
"updated_at": "<string>"
},
"id": "<string>",
"type": "<string>",
"links": {
"self": "<string>"
},
"meta": {},
"relationships": {}
},
"included": [
"<unknown>"
],
"links": {
"self": "<string>"
},
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}community-discussions
Schedule Discussion
Schedule (or reschedule) a draft discussion for future auto-publication.
Body: {data: {attributes: {scheduled_at: "<tz-aware ISO-8601>"}}}
hub_id is sourced from the query string (?hub_id=...) — mirrors the
/publish, /unpin, PATCH, and DELETE sibling action routes on this router.
Returns 200 with the updated discussion resource on success.
Returns 422 when scheduled_at is absent, naive (no tz offset), or fails
business-rule bounds (too soon, too far).
Returns 403 when the caller is not the author or is banned.
Returns 404 when the discussion does not exist.
Returns 409 when the discussion is already published.
PUT
/
api
/
v1
/
discussions
/
{discussion_id}
/
schedule
Schedule Discussion
curl --request PUT \
--url https://api.member.dev/api/v1/discussions/{discussion_id}/schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{}'import requests
url = "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({})
};
fetch('https://api.member.dev/api/v1/discussions/{discussion_id}/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.member.dev/api/v1/discussions/{discussion_id}/schedule"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.member.dev/api/v1/discussions/{discussion_id}/schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/discussions/{discussion_id}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"attachments": [
{
"id": "<string>",
"media_id": "<string>",
"role": "<string>",
"asset_kind": "<string>",
"file_id": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"size_bytes": 123,
"status_upload": "<string>",
"thumbnail_url": "<string>",
"thumbnail_url_expires_at": "<string>",
"url": "<string>",
"url_expires_at": "<string>"
}
],
"author_contact_id": "<string>",
"author_display_name": "<string>",
"author_photo_thumbnail_url": "<string>",
"author_photo_thumbnail_url_expires_at": "2023-11-07T05:31:56Z",
"author_photo_url": "<string>",
"author_photo_url_expires_at": "2023-11-07T05:31:56Z",
"body": "<string>",
"comment_count": 123,
"created_at": "<string>",
"deleted_at": "<string>",
"external_video_embeds": [
{}
],
"hub_id": "<string>",
"is_broadcast": true,
"is_locked": true,
"is_pinned": true,
"is_published": true,
"last_activity_at": "<string>",
"poll": {
"closed": true,
"deadline_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>",
"position": 123,
"vote_count": 123
}
],
"total_votes": 123,
"viewer_option_id": "<string>",
"viewer_voted": true
},
"published_at": "<string>",
"reaction_count": 123,
"reactions": [
"<unknown>"
],
"report_count": 0,
"reported_by_me": false,
"repost": {
"author_display_name": "<string>",
"author_photo_thumbnail_url": "<string>",
"author_photo_url": "<string>",
"body": "<string>",
"id": "<string>",
"published_at": "<string>",
"space_name": "<string>",
"space_slug": "<string>",
"title": "<string>"
},
"repost_count": 123,
"scheduled_at": "<string>",
"space_id": "<string>",
"status": "<string>",
"team_id": "<string>",
"title": "<string>",
"updated_at": "<string>"
},
"id": "<string>",
"type": "<string>",
"links": {
"self": "<string>"
},
"meta": {},
"relationships": {}
},
"included": [
"<unknown>"
],
"links": {
"self": "<string>"
},
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Body
application/vnd.api+json
The body is of type Body · object.
⌘I