Skip to main content

Create or update

You can use the create or update catalogs API to create the catalogs.

Request parameters

NameTypeRequired/OptionalDescription
catalogsBikCatalog[]RequiredList of catalogs

BikCatalog Type

NameTypeDescription
idstringCatalog ID
namestringName of the catalog
descriptionstringCatalog description
imagestringCatalog image
handlestringCatalog handle
isSmartCollectionbooleanIs the catalog is a smart collection or not
isPrivatebooleanIs the catalog is private
isHiddenbooleanIs the catalog is hidden

Request Information

CategoryValue
Http requestPOST
URLhttps://bikapi.bikayi.app/integrations/bikPlatformFunctions-catalogs/createOrUpdate

Sample request

curl --location 'https://bikapi.bikayi.app/integrations/bikPlatformFunctions-catalogs/createOrUpdate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic AUTH_TOKEN' \
--data '{
"catalogs": [
{
"name": "Catalog 1",
"id": "453048500520",
"description": "Test catalog 1",
"url": "https://test.com"
}
]
}'

JSON response example:

{
"status": 200,
"success": true,
"data": {
"catalogs": [
{
"name": "Catalog 1",
"description": "Test catalog 1",
"id": "453048500520",
"url": "https://test.com"
}
]
}
}

Response parameters

NameTypeDescription
statusnumberResponse status
successbooleanIs successful response or not
dataBikCatalogsList of catalogs

Errors

Error CodeMeaning
400Invalid payload -- Your request is invalid.
401Unauthorized -- User is not authenticated.
404Not Found -- The specified API could not be found.
500Internal Server Error -- We had a problem with our server. Try again later.

Error response example:

{
"status": 400,
"errors": [
{
"message": "'catalogs' is required."
}
]
}