Skip to main content
POST
/
points_of_measures
Add a new points of measure
curl --request POST \
  --url https://api.rechain.co/public/v1/points_of_measures \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=Dimension Name' \
  --form code=DIM1234 \
  --form 'instructions=Follow these instructions for dimension.' \
  --form toleranceMinusIn=-0.5 \
  --form toleranceMinusCm=-1.27 \
  --form tolerancePlusIn=0.5 \
  --form tolerancePlusCm=1.27 \
  --form companyId=123e4567-e89b-12d3-a456-426614174000 \
  --form photo='@example-file'
{
  "name": "Dimension Name",
  "code": "DIM1234",
  "instructions": "Follow these instructions for dimension.",
  "toleranceMinusIn": -0.5,
  "toleranceMinusCm": -1.27,
  "tolerancePlusIn": 0.5,
  "tolerancePlusCm": 1.27,
  "companyId": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "photo": "https://example.com/photo.jpg"
}

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 points of measure

name
string
required
Example:

"Dimension Name"

code
string
required
Example:

"DIM1234"

companyId
string<uuid>
required
Example:

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

instructions
string
Example:

"Follow these instructions for dimension."

photo
file

The photo file to upload

toleranceMinusIn
number
Example:

-0.5

toleranceMinusCm
number
Example:

-1.27

tolerancePlusIn
number
Example:

0.5

tolerancePlusCm
number
Example:

1.27

Response

Successful operation

id
string<uuid>
required
Example:

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

name
string
required
Example:

"Dimension Name"

code
string
required
Example:

"DIM1234"

companyId
string<uuid>
required
Example:

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

photo
string<url>
Example:

"https://example.com/photo.jpg"

instructions
string
Example:

"Follow these instructions for dimension."

toleranceMinusIn
number
Example:

-0.5

toleranceMinusCm
number
Example:

-1.27

tolerancePlusIn
number
Example:

0.5

tolerancePlusCm
number
Example:

1.27