Skip to content

Send a text message to a thread

POST
/thread/{id}

Authorizations

Parameters

Path Parameters

id
required
string
[
"QQRRSSTT"
]

The ID of the thread

Request Body

The message to be sent. Note that you only need the fields applicable for the text type.

The contents of the message. Fields will vary depending on message type.

object
type
required

The type of message

string
Allowed values: status_change text thread_closure deleted
status_change
body

The actual message text. Only present for text message type

string
This is the text of the message.
private

Whether the message is only visible to moderators. Only present for text message type

boolean
replying_to

The ID of the message being replied to by this message. Only present for text message type

string
nullable
SSTTUUVV
old_status

The old status of the project. Only present for status_change message type

string
Allowed values: approved archived rejected draft unlisted processing withheld scheduled private unknown
processing
new_status

The new status of the project. Only present for status_change message type

string
Allowed values: approved archived rejected draft unlisted processing withheld scheduled private unknown
approved

Responses

200

Expected response to a valid request

object
id
required

The ID of the thread

string
WWXXYYZZ
type
required
string
Allowed values: project report direct_message
project_id

The ID of the associated project if a project thread

string
nullable
report_id

The ID of the associated report if a report thread

string
nullable
messages
required
Array<object>
object
id
required

The ID of the message itself

string
MMNNOOPP
author_id

The ID of the author

string
nullable
QQRRSSTT
body
required

The contents of the message. Fields will vary depending on message type.

object
type
required

The type of message

string
Allowed values: status_change text thread_closure deleted
status_change
body

The actual message text. Only present for text message type

string
This is the text of the message.
private

Whether the message is only visible to moderators. Only present for text message type

boolean
replying_to

The ID of the message being replied to by this message. Only present for text message type

string
nullable
SSTTUUVV
old_status

The old status of the project. Only present for status_change message type

string
Allowed values: approved archived rejected draft unlisted processing withheld scheduled private unknown
processing
new_status

The new status of the project. Only present for status_change message type

string
Allowed values: approved archived rejected draft unlisted processing withheld scheduled private unknown
approved
created
required

The time at which the message was created

string format: ISO-8601
members
required
Array
object
username
required

The user’s username

string
my_user
name

The user’s display name

string
nullable
My User
email

The user’s email (only displayed if requesting your own account). Requires USER_READ_EMAIL PAT scope.

string format: email
nullable
bio

A description of the user

string
My short biography
payout_data

Various data relating to the user’s payouts status (you can only see your own)

object
balance

The payout balance available for the user to withdraw (note, you cannot modify this in a PATCH request)

integer
10.11223344556678
payout_wallet

The wallet that the user has selected

string
Allowed values: paypal venmo
paypal
payout_wallet_type

The type of the user’s wallet

string
Allowed values: email phone user_handle
email
payout_address

The user’s payout address

string
support@modrinth.com
id
required

The user’s ID

string
EEFFGGHH
avatar_url
required

The user’s avatar url

string
https://avatars.githubusercontent.com/u/11223344?v=1
created
required

The time at which the user was created

string format: ISO-8601
role
required

The user’s role

string
Allowed values: admin moderator developer
developer
badges

Any badges applicable to this user. These are currently unused and undisplayed, and as such are subject to change

In order from first to seventh bit, the current bits are:

  • (unused)
  • EARLY_MODPACK_ADOPTER
  • EARLY_RESPACK_ADOPTER
  • EARLY_PLUGIN_ADOPTER
  • ALPHA_TESTER
  • CONTRIBUTOR
  • TRANSLATOR
integer format: bitfield
63
auth_providers

A list of authentication providers you have signed up for (only displayed if requesting your own account)

Array<string>
nullable
[
"github",
"gitlab",
"steam",
"microsoft",
"google",
"discord"
]
email_verified

Whether your email is verified (only displayed if requesting your own account)

boolean
nullable
has_password

Whether you have a password associated with your account (only displayed if requesting your own account)

boolean
nullable
has_totp

Whether you have TOTP two-factor authentication connected to your account (only displayed if requesting your own account)

boolean
nullable
github_id

Deprecated - this is no longer public for security reasons and is always null

integer
nullable

400

Request was invalid, see given error

object
error
required

The name of the error

string
invalid_input
description
required

The contents of the error

string
Error while parsing multipart payload

404

The requested item(s) were not found or no authorization to access the requested item(s)