- Versions Concepts Resources Extensions Statistics Resources Reference
Share content
The sharing functionality allows you to "share" a question or solution with one or several user. You can add a message which will be included in the notification which is triggered for each user you've shared with.
Share a question
This will notify each user in recipients
with the given message
about the question specified by ID
.
POST /questions/:ID/share
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
message |
string |
- | Share message | |
recipients |
Array[Int] |
[] | ✓ | IDs of users who should receive a share notification |
Json Payload
{
"message": "Hey, have a look at this mysteriously question!",
"recipients": [42]
}
Response
HTTP 200 OK
with an empty body
Share a solution
This will notify each user in recipients
with the given message
about the solution specified by ID
.
POST /solutions/:ID/share
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
message |
string |
- | Share message | |
recipients |
Array[Int] |
[] | ✓ | IDs of users who should receive a share notification |
Json Payload
{
"message": "Hey, have a look at this mysteriously solution!",
"recipients": [42]
}
Response
HTTP 200 OK
with an empty body