Repzo API - Measure Unit (1.0.0)

Download OpenAPI specification:Download

OpenAPI specification for Repzo Measure Unit endpoints.

Find measure units

query Parameters
object

Query parameters for filtering measure units

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "total_result": 0,
  • "current_count": 0,
  • "total_pages": 0,
  • "current_page": 0,
  • "per_page": 0,
  • "first_page_url": "string",
  • "last_page_url": "string",
  • "next_page_url": "string",
  • "prev_page_url": "string",
  • "path": "string"
}

Create a measure unit

Request Body schema: application/json
name
required
string

Name of the measure unit

factor
required
number

Factor of the measure unit

local_name
string

Localized name of the measure unit

parent
string

Parent measure unit ID

company_namespace
Array of strings

Company namespaces

disabled
boolean

Whether the measure unit is disabled

object

Integration metadata

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "company_namespace": [
    ],
  • "disabled": true,
  • "integration_meta": { }
}

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "disabled": true,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Get a measure unit by ID

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "disabled": true,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Update a measure unit

path Parameters
id
required
string
Request Body schema: application/json
name
string

Name of the measure unit

factor
number

Factor of the measure unit

local_name
string

Localized name of the measure unit

parent
string

Parent measure unit ID

company_namespace
Array of strings

Company namespaces

disabled
boolean

Whether the measure unit is disabled

object

Integration metadata

_id
string

Unique identifier for the measure unit

createdAt
string <date-time>

Creation timestamp

updatedAt
string <date-time>

Last update timestamp

__v
number

Version number

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "company_namespace": [
    ],
  • "disabled": true,
  • "integration_meta": { },
  • "_id": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "disabled": true,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}

Remove a measure unit

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "_id": "string",
  • "name": "string",
  • "factor": 0,
  • "local_name": "string",
  • "parent": "string",
  • "disabled": true,
  • "integration_meta": { },
  • "company_namespace": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "__v": 0
}