Body
Required
POST
/api/assignments/duplicate
curl \
-X POST https://metropolitanabogota.org/api/assignments/duplicate \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"date":"string","dates":["string"],"location":{"id":"string"},"keepState":false}'
Request example
{
"date": "string",
"dates": [
"string"
],
"location": {
"id": "string"
},
"keepState": false
}
Response examples (200)
[
{
"date": "string",
"isCaptain": false,
"isAccepted": true,
"isEditable": true,
"id": "string",
"shift": {
"id": "string",
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"location": {
"id": "string",
"name": "string"
},
"dayOfWeek": 42
},
"user": {
"firstName": "string",
"lastName": "string",
"email": "string",
"primaryPhone": "string",
"secondaryPhone": "string",
"isWhatsappEnabled": true,
"isCaptain": true,
"isEnabled": true,
"id": "string",
"name": "string",
"username": "string",
"role": 100,
"congregation": {
"id": "string",
"name": "string",
"city": "string",
"state": "string"
},
"availabilityCount": 42,
"availability": [
{
"id": "string",
"shift": {
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"dayOfWeek": 42,
"seatsCount": 42,
"isEnabled": true,
"id": "string",
"location": {
"id": "string",
"name": "string"
}
}
}
],
"whatsappPrimaryPhone": "string",
"lastSignedInAt": "2024-05-04T09:42:00+00:00",
"createdAt": "2024-05-04T09:42:00+00:00",
"updatedAt": "2024-05-04T09:42:00+00:00"
},
"isSubstitution": false,
"createdAt": "2024-05-04T09:42:00+00:00",
"updatedAt": "2024-05-04T09:42:00+00:00"
}
]
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}