POST /jobAssignment

Add a new job assignment with given details.

application/json

Body Required

  • assignedDate string(date)
  • userIDs array[integer]
  • visitID integer
  • companyID integer

Responses

  • 201 application/json

    Job assignment created successfully

    Hide response attributes Show response attributes object
    • assignmentID integer
    • assignedDate string(date)
    • userID integer
    • visitID integer
    • companyID integer
    • createdBy integer
    • updatedBy integer
  • 500

    Error occurred while creating job assignment

POST /jobAssignment
curl \
 -X POST http://api.example.com/jobAssignment \
 -H "Content-Type: application/json" \
 -d '{"assignedDate":"2024-05-04","userIDs":[42],"visitID":42,"companyID":42}'
Request example
{
  "assignedDate": "2024-05-04",
  "userIDs": [
    42
  ],
  "visitID": 42,
  "companyID": 42
}
Response examples (201)
[
  {
    "assignmentID": 42,
    "assignedDate": "2024-05-04",
    "userID": 42,
    "visitID": 42,
    "companyID": 42,
    "createdBy": 42,
    "updatedBy": 42
  }
]