Skip to content

Meta Data

Meta API is used to store meta data for any object. Can be use as generic storage for any object.

REST API META

SET

HTTP
curl -X POST {{host}}/api/core/meta/set/{{meta_remote_source}}/{{meta_remote_uuid}}/{{meta_name}} \
-H "Authorization: Token {{token}}" \
-d " { 
  meta_price: 34.3 , 
  meta_text:'text=3233',
  meta_date:'2023-01-01',
  meta_number:12.2, 
  meta_objectid:'55e0a1d1-0e71-ef11-95b4-d89d6719e0ce', 
  meta_quantity:12.2, 
  meta_locationid:'55e0a1d1-0e71-ef11-95b4-d89d6719e0cb' }" 

Parameters can be pass as JSON object or query string.

GET

HTTP
curl {{host}}/api/core/meta/get/{{meta_remote_source}}/{{meta_remote_uuid}}/{{meta_name}} \
-H "Authorization: Token {{token}}"
  • meta_name - is optional. If not provided all meta data for the object will be returned.

Remove

HTTP
curl {{host}}/api/core/meta/remove/{{meta_uuid}} \
-H "Authorization: Token {{token}}"

Business objects

  • [app].[meta_set]

Data objects

  • [app].[meta]
    • meta_uuid - unique
    • meta_remote_source, meta_remote_uuid,meta_name - key
    • meta_text, meta_date, meta_number, meta_status, meta_objectid, meta_quantity, meta_price, meta_locationid - data
    • meta_created_at, meta_created_by, meta_modified_at, meta_modified_by - audit