Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

collection_id
string
required

The ID of the collection containing the items to merge.

Body

application/json

A JSON object describing the merge (ItemMergeParams), including source and destination item objects.

Parameters for merging one Item into another Item.

source
ItemPointerParam · object
required

The source item pointer. This item will be deleted.

destination
ItemPointerParam · object
required

The destination item pointer. This will be the remaining merged item.

Response

Successful response.

An Item represents a single record or row within a Collection. It holds a set of values corresponding to the Collection's fields.

type
string
required

String representing the object’s type. Always item for this object.

Allowed value: "item"
id
string
required

Unique identifier for the object.

collection
CollectionPointer · object
required

A lightweight reference to a Collection, containing the minimal information needed to identify it.

values
object
required

A hash where keys are the ref of a Field and values are the data stored for that field.