POST
/
api
/
report
curl --request POST \
  --url http://localhost/api/report \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "reportedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "equipmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "description": "<string>",
  "reportedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "departmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "deskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "equipmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
title
string
required
description
string
required
reportedBy
string
required
departmentId
string
roomId
string
deskId
string
equipmentId
string

Response

200
*/*
Defect report successfully created
id
string
title
string
description
string
reportedBy
string
departmentId
string
roomId
string
deskId
string
equipmentId
string
createdAt
string