Skip to main content
POST
/
construction_details
Add a new construction detail
curl --request POST \
  --url https://api.rechain.co/public/v1/construction_details \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form name=Red \
  --form companyId=123e4567-e89b-12d3-a456-426614174000 \
  --form description=description \
  --form image='@example-file'
{
  "name": "Red",
  "companyId": "123e4567-e89b-12d3-a456-426614174000",
  "description": "description",
  "fileUrl": "https://example.com/file.png",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2023-08-23T18:25:43.511Z",
  "updatedAt": "2023-08-23T18:25:43.511Z"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Create a new construction detail

name
string
required
Example:

"Red"

companyId
string<uuid>
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

description
string
Example:

"description"

image
file

The photo file to upload

Response

Successful operation

id
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

createdAt
string<date-time>
Example:

"2023-08-23T18:25:43.511Z"

updatedAt
string<date-time>
Example:

"2023-08-23T18:25:43.511Z"

name
string
Example:

"Red"

companyId
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

description
string
Example:

"description"

fileUrl
string
Example:

"https://example.com/file.png"