Interviews

Update an interview

PATCH updates an interview

Endpoint

PATCH /api/v1/interviews/:id

Parameters

Name Description
interview[kind] Interview kind
interview[start_at] Interview start at
interview[end_at] Interview end at
interview[interviewee_id] Interview interviewee
interview[interviewer_id] Interview interviewer
interview[location] Interview location

Request

Route

PATCH /api/v1/interviews/27

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5OTYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NzMsImV4cCI6MTc0MDE0MzU3MywianRpIjoiMGQzNzQxYmMtZjFkNC00YTY5LTg4YjMtNzYyNDliMGMzNDkxIn0.xHi0mtT6yFj4EtcvFE1oakIQEqEznduRt3R4HTL8Mas
Host: example.org
Cookie: 

Body

{
  "interview": {
    "location": "https://google.meet",
    "start_at": "2025-01-22T13:42:53Z",
    "end_at": "2025-01-22T14:12:53Z",
    "interviewer_id": 997,
    "interviewee_id": 280
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"8f85948571e2230e991693f8e71b2485"
cache-control: max-age=0, private, must-revalidate
x-request-id: 03f5f5e3-86fc-4a05-893b-9213074e92ca
x-runtime: 0.019911
content-length: 524

Body

{
  "interview": {
    "id": 27,
    "amend_end_at": null,
    "amend_start_at": null,
    "amended_by": null,
    "end_at": "2025-01-22T14:12:53.000Z",
    "interviewee": {
      "id": 280,
      "driver": {
        "id": 993,
        "image": null,
        "phone_number": "123",
        "title": "Taren Greenholt"
      },
      "kind": "verified",
      "updated_at": "2025-01-22T13:12:53.613Z"
    },
    "interviewee_id": 280,
    "interviewer": {
      "id": 997,
      "contact_phone_number": null,
      "image": null,
      "title": "Angel Okuneva"
    },
    "interviewer_id": 997,
    "kind": "video_call",
    "location": "https://google.meet",
    "start_at": "2025-01-22T13:42:53.000Z",
    "status": "pending"
  }
}