Follow the question structure recommended by Dev Bot before submitting your integration questions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| sourceWorkoutId | int32 | Yes | ID of the source workout to be linked. |
| idPrescriptionEmployee | int32 | Yes | ID of the staff member responsible for prescribing the workout. |
| idClient | int32 | No | ID of the client to whom the workout will be linked. Required if idProspect is not provided. |
| idProspect | int32 | No | ID of the prospect to whom the workout will be linked. Required if idClient is not provided. |
| idEmployee | int32 | No | ID of the staff member to whom the workout will be linked (when applicable). |
| prescriptionDate | string(date-time) | No | Date of the prescription in the format yyyy-MM-dd. If not provided, it can be set automatically. |
| endAllActiveWorkouts | boolean | No | Indicates whether all active workouts for the student, prospect, or staff member in question should be ended (the expiration date should be set to yesterday). Default: false |
username:passwordAuthorization: Basic *****************curl --location --request POST 'https://evo-integracao-api.w12app.com.br/api/v2/workout/link-workout-to-client?sourceWorkoutId=undefined&idPrescriptionEmployee=undefined&idClient=undefined&idProspect=undefined&idEmployee=undefined&prescriptionDate=undefined&endAllActiveWorkouts=undefined' \
--header 'Authorization: Basic <encoded-value>'{
"mensagens": [
"string"
]
}