Skip to content

resmoio/custom-schema-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resmo Custom Data Resource/Schema Examples

Example JSON schema for an employee

Example JSON Schema

Resource event (single)

Add an example resource

Valid example of payload

$ curl --request POST \
  --url https://YOUR_DOMAIN.resmo.app/integration/custom-data/event/YOUR_TABLE_NAME_HERE \
  --header 'Content-Type: application/json' \
  --header 'X-Ingest-Key: YOUR_INTEGRATION_INGEST_KEY_HERE' \
  --data 'PAYLOAD_HERE'

Navigate to resource on Resmo and you can see the created resource: Resource Added

Modify a field of the added resource

Use same example payload again with changing salary field.

Navigate to resource on Resmo and you can see the modified resource: Resource Modified

If you set id field different from the previous, it will be evaluated as a new resource.


Resource event (bulk)

Add example resources

Valid example of payload

$ curl --request POST \
  --url https://YOUR_DOMAIN.resmo.app/integration/custom-data/bulk-event/YOUR_TABLE_NAME_HERE \
  --header 'Content-Type: application/json' \
  --header 'X-Ingest-Key: YOUR_INTEGRATION_INGEST_KEY_HERE' \
  --data 'PAYLOAD_HERE'

Navigate to resource on Resmo and you can see the added resources: Resources Added

Use same example payload again with changing salary field.

Navigate to changes on Resmo and you can see the modified resources: Resources Updated

New id's will be evaluated as new resource, missing resources will be removed as nature of bulk events.

Delete a resource

To remove resources with ids: ID1, ID2, ID3:

$ curl --request DELETE \
  --url https://YOUR_DOMAIN.resmo.app/integration/custom-data/YOUR_TABLE_NAME_HERE?resourceIds=ID1,ID2,ID3 \
  --header 'X-Ingest-Key: YOUR_INTEGRATION_INGEST_KEY_HERE'

Navigate to changes on Resmo and you can see the deleted resource: Resource Deleted

Releases

No releases published

Packages

No packages published