POST playable/…/contact-author
Sends a message to the author of a given playable. The sender must be a user of the playable.
Resource URL
https://www.drillster.com/api/2.1.1/playable/{playable_id}/contact-author
Parameters
Field | Type | Description |
---|---|---|
playable_id required |
String | The unique ID of the drill, test, story or course. |
message required |
String | A message for the author. |
Response
A NoContent (204) response indicating that the message was sent successfully.
Error responses
The following error situations are possible:
ID | Response code | Description |
---|---|---|
missing_playable_id |
400 (Bad request) | Please provide a playable ID |
not_found |
404 (Not found) | Requested playable not found |
no_access |
403 (Forbidden) | No access to requested playable |
internal_error |
500 (Internal error) | Requested playable could not be retrieved |
no_permission |
403 (Forbidden) | No permission to retrieve this test |
missing_message |
400 (Bad request) | Missing message |
unable_to_contact_author |
410 (Gone) | The playable has no contactable authors |
own_playable |
400 (Bad request) | Cannot contact yourself |
Last updated on