Loading…
Ask another user to train together.
| Permission | Description |
|---|---|
training_partners.create | Send a partner request |
| Name | Type | Required | Description |
|---|---|---|---|
addressee_user_id | int | Yes | The user you are asking. Cannot be yourself |
message | string | No | Max 500 characters |
The addressee must have an active partner profile. A user who has not opted in — or has opted out — returns 404, not 403: somebody who does not take part in partner matching is not reachable through this endpoint, and a 403 would confirm that their account exists.
The request was created, with status pending and no chat.
A request from you to this user already exists. The existing row is returned untouched, so a double tap creates one request rather than two, and re-sending does not reset a request the addressee has already declined.
{
"data": <training partner request resource>
}
The pair is unique per direction, so the other user may still send their own request back to you.
| Status | Error Type | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |
| 404 | Not Found | Not found error |
| 422 | Validation Error | Validation error |