POST /visits

Add a new visit with the given details.

application/json

Body Required

  • visitID integer
  • startDate string(date-time)
  • endDate string(date-time)
  • isAllDay boolean
  • jobID integer
  • companyID integer
  • createdBy integer
  • updatedBy integer

Responses

  • 201

    Visit created successfully

  • 500

    Error occurred while creating visit

POST /visits
curl \
 -X POST http://api.example.com/visits \
 -H "Content-Type: application/json" \
 -d '{"visitID":42,"startDate":"2024-05-04T09:42:00+00:00","endDate":"2024-05-04T09:42:00+00:00","isAllDay":true,"jobID":42,"companyID":42,"createdBy":42,"updatedBy":42}'
Request example
{
  "visitID": 42,
  "startDate": "2024-05-04T09:42:00+00:00",
  "endDate": "2024-05-04T09:42:00+00:00",
  "isAllDay": true,
  "jobID": 42,
  "companyID": 42,
  "createdBy": 42,
  "updatedBy": 42
}