Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Attributes

13 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Fetch attributes (can filter by group id in query)

GET/attributes

Public: no sign-in needed.

Parameters

NameTypeDescription
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1, maximum 100.
channel_idstring, query
attribute_groupnumber, queryFilter by attribute group id

Response

200. data is object[].

Create a new attribute

POST/attributes

Needs a signed-in user (Bearer token or access_token cookie).

Request body application/json

FieldTypeDescription
namerequiredstring
attribute_grouprequirednumberAttribute group id (same channel)
sortnumber

Response

201. The payload in data is of type object.

Update an attribute

PATCH/attributes/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
namestring
attribute_groupnumberAttribute group id (same channel)
sortnumber

Response

200. The payload in data is of type object.

Delete an attribute

DELETE/attributes/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Fetch attribute data assignments

GET/attributes/data

Public: no sign-in needed.

Parameters

NameTypeDescription
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1, maximum 100.
channel_idstring, query
attribute_idstring, query
product_idstring, query
campaign_idnumber, query

Response

200. data is object[].

Assign attribute data to a product/campaign

POST/attributes/data

Needs a signed-in user (Bearer token or access_token cookie).

Request body application/json

FieldTypeDescription
descriptionrequiredstring
attribute_idrequiredstringAttribute uuid (same channel)
product_idstringProduct uuid (same channel)
campaign_idnumberCampaign id (same channel)
sortnumber

Response

201. The payload in data is of type object.

Update an attribute data assignment

PATCH/attributes/data/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequirednumber, path

Request body application/json

FieldTypeDescription
descriptionstring
attribute_idstringAttribute uuid (same channel)
product_idstringProduct uuid (same channel)
campaign_idnumberCampaign id (same channel)
sortnumber

Response

200. The payload in data is of type object.

Delete an attribute data assignment

DELETE/attributes/data/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

Fetch all attribute groups

GET/attributes/groups

Public: no sign-in needed.

Parameters

NameTypeDescription
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1, maximum 100.
channel_idstring, query

Response

200. data is object[].

Create a new attribute group

POST/attributes/groups

Needs a signed-in user (Bearer token or access_token cookie).

Request body application/json

FieldTypeDescription
namerequiredstring
sortnumber

Response

201. The payload in data is of type object.

Fetch a specific attribute group

GET/attributes/groups/{id}

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequirednumber, path

Response

200. The payload in data is of type object.

Update an attribute group

PATCH/attributes/groups/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequirednumber, path

Request body application/json

FieldTypeDescription
namestring
sortnumber

Response

200. The payload in data is of type object.

Delete an attribute group

DELETE/attributes/groups/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequirednumber, path

Response

200. The payload in data is not described in the spec yet.