Baack
Browse the docs

Endpoints

  • CreatePOST/n/v1/entitylist/

    Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.

    Baack allocates the URN and returns it in the response.

    Request body: Entity List

    Responses

    201 Created
    returns Entity ListCREATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_REPRESENTATION
  • ReadGET/n/v1/entitylist/{urn}

    Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.

    Notes

    • The listed entity references are returned according to the sort order of the references
    • When duplicate sort order values are provided the specific ordering is undetermined
    • The list of entities is intended to be bounded to a reasonable number e.g. a collection size that would be sensible to post in bounded time. Practically this means the representation of the list would not typically exceed a few hundred KB. No restriction is currently enforced but as the list is not intended to be paged please consider this when constructing lists. For dynamic / calculated lists prefer searches.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    200 OK
    returns Entity ListREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/entitylist/{urn}
  • UpdatePUT/n/v1/entitylist/{urn}

    Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Request body: Entity List

    Responses

    202
    returns Entity ListUPDATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_REPRESENTATION
  • DeleteDELETE/n/v1/entitylist/{urn}

    Entity list endpoint that is used for creating collections of entities e.g. for a blog listing.

    Parameters

    urn (path, required)

    String representation of a Unique Resource Name. Typically a UUID with 36 characters.

    Responses

    202
    DELETE_SUCCESS

Webhook

POSTyour destination URL

Subject: ENTITY_LIST

Webhook for changes to an entity list e.g. adding a new item to a list (like blogpost listing)

Use the entity list webhook to integrate custom logic like implementing customised ordering for the entity list e.g. when a new item is added, it could be ranked according to its historical delivery volume.

Note that the entity list, unlike most of the API endpoints at Baack uses a collection list to maintain the membership list, this can however mean that the list can become long however should not become overly long to avoid costly transfer.

Body: Webhook Event

Your response

200
Return 200 status to indicate that data was received successfully

Fields

Entity List fields
FieldTypeDescription
urnstring (uuid)
ownerCompany

Required on create.

.

entitiesarray of Entity List Item

Required on create.

.

namestring

Required on create.

.

urlstring (uri)

Used by: Search Item

Entity List Item

Entity list item reference and sorting order

Fields

Entity List Item fields
FieldTypeDescription
urnstring (uuid)
sortOrderinteger (int32)
entityEntity

Required on create.

.

Used by: Entity List