Skip to main content

Create a Custom API Entry

POST 

/v2/extensions/:customApiSlug

Create a Custom API Entry

Request

Path Parameters

    customApiSlug stringrequired

    The slug of the Custom API.

    Example: wishlists

Body

    data CustomApiEntryAttributesrequired
    type string

    Specifies the type of the resource object, use the api_type of the Custom API for Custom API Entry.

    $customFieldSlug stringintegerboolean

    Specifies the data for this Custom API Entry, each key must match a slug of a Custom Field. The corresponding value must conform to the defined field_type and meet the validation defined for that field if set.

    links object
    meta Meta (integer)
    timestamps Timestampsrequired

Responses

Created

Response Headers
  • ETag string

    A unique identifier representing the current version of the resource. When the resource changes, the ETag value will also change.

Schema
    data objectrequired
    id uuidrequired

    The unique identifier for the Custom API Entry

    type stringrequired

    Specifies the type of the resource object, use the api_type of the Custom API for Custom API Entry.

    $customFieldSlug stringintegerboolean

    Specifies the data for this Custom API Entry, each key must match a slug of a Custom Field. The corresponding value must conform to the defined field_type and meet the validation defined for that field if set.

    links object
    self uri

    Specifies the URI of the Custom API Entry.

    meta Meta (integer)
    timestamps Timestampsrequired
    updated_at stringrequired

    Specifies the date the entity is created.

    created_at stringrequired

    Specifies the date the entity is last updated.

    data_size required

    Specifies the sum of the size of each value stored for the Custom API Entry in bytes. The total size of a Custom API Entry must not exceed 64KB.

Loading...