mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:34:09 +08:00
5c84f702b0
When creating a PM target_usernames has been deprecated for some time
now but the api docs have yet to reflect this.
The api docs now specify to use target_recipients.
See: eef21625c6
43 lines
1008 B
JSON
43 lines
1008 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"description": "Required if creating a new topic or new private message."
|
|
},
|
|
"raw": {
|
|
"type": "string"
|
|
},
|
|
"topic_id": {
|
|
"type": "integer",
|
|
"description": "Required if creating a new post."
|
|
},
|
|
"category": {
|
|
"type": "integer",
|
|
"description": "Optional if creating a new topic, and ignored if creating a new post."
|
|
},
|
|
"target_recipients": {
|
|
"type": "string",
|
|
"description": "Required for private message, comma separated.",
|
|
"example": "blake,sam"
|
|
},
|
|
"target_usernames": {
|
|
"type": "string",
|
|
"description": "Deprecated. Use target_recipients instead.",
|
|
"deprecated": true
|
|
},
|
|
"archetype": {
|
|
"type": "string",
|
|
"description": "Required for new private message.",
|
|
"example": "private_message"
|
|
},
|
|
"created_at": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"raw"
|
|
]
|
|
}
|
|
|