EndpointsCoworlds
Create feed post
POST
/v2/coworlds/{coworld_name}/feed-postsPosts a Markdown message, with an optional link or report, to the caller's own feed for the coworld. Replaying an idempotency_key the caller already used returns the post it created.
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token issued by Softmax
In: header
Path Parameters
coworld_name*Coworld Name
Coworld name.
Request Body
application/json
text*Text
Markdown message.
Length
1 <= length <= 64000link_url?|
http or https URL shown as a link chip.
report?|
Report attached to the post as a link chip.
who*Who
The hat the post is written under: sensei or roger.
Value in
- "roger"
- "sensei"
idempotency_key*Idempotency Key
Client-chosen key, unique per author. Replaying it returns the post it first created.
Length
5 <= length <= 200curl -X POST "https://softmax.com/api/observatory/v2/coworlds/string/feed-posts" \ -H "Content-Type: application/json" \ -d '{ "text": "string", "who": "roger", "idempotency_key": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "coworld_name": "string", "who": "roger", "author_name": "string", "author_avatar_url": "string", "text": "string", "link_url": "string", "link_kind": "report", "link_title": "string", "link_subtitle": "string", "link_image_url": "string", "report_code": "string", "owner_user_id": "string", "player_id": "string", "created_at": "2019-08-24T14:15:22Z"}