Metanow Docs
API & IntegrationReference

Entities

Create, read, update, and soft-delete entities within your organisation.

List entities

GET
/entities
AuthorizationBearer <token>

In: header

Query Parameters

offset?number
limit?number
q?string
status?string
entity_type?string

Response Body

application/json

curl -X GET "https://loading/entities"
{
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
      "entity_type": "CLIENT",
      "name": "string",
      "status": "string",
      "primary_email": "string",
      "primary_phone": "string",
      "country": "string",
      "currency": "string",
      "language": "string",
      "parent_entity_id": "132b4a6c-0dc2-4b0f-95c9-b1192332981b",
      "data": {
        "property1": null,
        "property2": null
      },
      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "total": 0,
  "limit": 1,
  "offset": 0
}
Empty

Create an entity

POST
/entities
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/entities" \  -H "Content-Type: application/json" \  -d '{    "entity_type": "CLIENT",    "name": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
  "entity_type": "CLIENT",
  "name": "string",
  "status": "string",
  "primary_email": "string",
  "primary_phone": "string",
  "country": "string",
  "currency": "string",
  "language": "string",
  "parent_entity_id": "132b4a6c-0dc2-4b0f-95c9-b1192332981b",
  "data": {
    "property1": null,
    "property2": null
  },
  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty
Empty

List all entity types

GET
/entities/types
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://loading/entities/types"
[
  "CLIENT",
  "SUPPLIER",
  "PARTNER",
  "LEAD",
  "PROSPECT",
  "CUSTOMER",
  "VENDOR",
  "INVESTOR",
  "DONOR",
  "SPONSOR",
  "NONPROFIT",
  "CONTACT",
  "EMPLOYEE",
  "CONTRACTOR",
  "FREELANCER",
  "VOLUNTEER",
  "MEMBER",
  "TENANT",
  "APPLICANT",
  "PROPERTY",
  "VEHICLE",
  "DEVICE",
  "INSTALLATION",
  "ASSET",
  "LAND_PARCEL",
  "EQUIPMENT",
  "INVENTORY_ITEM",
  "LEGAL_MATTER",
  "PERMIT",
  "GRANT",
  "TAX_PERIOD",
  "REGULATORY_WATCH",
  "CASE",
  "POLICY",
  "PROJECT",
  "PRODUCT",
  "PATIENT",
  "STUDENT",
  "CITIZEN",
  "TAXPAYER",
  "BENEFICIARY",
  "GOVERNMENT_BODY",
  "REGULATORY_BODY",
  "CUSTOMS_AUTHORITY",
  "FINANCIAL_REGULATOR",
  "VESSEL",
  "BERTH",
  "CRANE",
  "CARGO_MANIFEST",
  "ACCOUNT",
  "COST_CENTRE",
  "LEGAL_ENTITY"
]

Get an entity by id

GET
/entities/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Entity UUID

Formatuuid

Response Body

application/json

curl -X GET "https://loading/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
  "entity_type": "CLIENT",
  "name": "string",
  "status": "string",
  "primary_email": "string",
  "primary_phone": "string",
  "country": "string",
  "currency": "string",
  "language": "string",
  "parent_entity_id": "132b4a6c-0dc2-4b0f-95c9-b1192332981b",
  "data": {
    "property1": null,
    "property2": null
  },
  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty
Empty

Update an entity

PATCH
/entities/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Entity UUID

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://loading/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
  "entity_type": "CLIENT",
  "name": "string",
  "status": "string",
  "primary_email": "string",
  "primary_phone": "string",
  "country": "string",
  "currency": "string",
  "language": "string",
  "parent_entity_id": "132b4a6c-0dc2-4b0f-95c9-b1192332981b",
  "data": {
    "property1": null,
    "property2": null
  },
  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty
Empty
Empty

Soft-delete an entity

DELETE
/entities/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Entity UUID

Formatuuid

Response Body

curl -X DELETE "https://loading/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
Empty
Empty