SalesChannelAttributeSchemas
Returns an attribute schema by its ID
Authorizations
Path parameters
channel_idintegerRequiredExample:
The channel ID of the resource.
5
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
200
Successful response
application/json
400
Bad Request
401
Unauthorized
403
Forbidden
get
GET /api/channel/{channel_id}/attribute_schemas/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 1,
"name": "text",
"schema": {},
"channel": 1,
"created_date": "2025-06-27T08:53:29.392Z",
"modified_date": "2025-06-27T08:53:29.392Z"
}
Update an existing attribute schema
Authorizations
Path parameters
channel_idintegerRequiredExample:
The channel ID of the resource.
5
idintegerRequiredExample:
Unique identifier of the resource
1
Body
namestring · max: 255Required
schemaobjectRequired
channelintegerRequired
Sales channel id
Responses
200
Attribute schema updated successfully
application/json
400
Bad Request
401
Unauthorized
403
Forbidden
put
PUT /api/channel/{channel_id}/attribute_schemas/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"name": "text",
"schema": {},
"channel": 1
}
{
"pk": 1,
"name": "text",
"schema": {},
"channel": 1,
"created_date": "2025-06-27T08:53:29.392Z",
"modified_date": "2025-06-27T08:53:29.392Z"
}
Partial update an existing attribute schema
Authorizations
Path parameters
channel_idintegerRequiredExample:
The channel ID of the resource.
5
idintegerRequiredExample:
Unique identifier of the resource
1
Body
namestring · max: 255Optional
schemaobjectOptional
channelintegerOptional
Sales channel id
Responses
200
Attribute schema updated successfully
application/json
400
Bad Request
401
Unauthorized
403
Forbidden
patch
PATCH /api/channel/{channel_id}/attribute_schemas/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"name": "text",
"schema": {},
"channel": 1
}
{
"pk": 1,
"name": "text",
"schema": {},
"channel": 1,
"created_date": "2025-06-27T08:53:29.392Z",
"modified_date": "2025-06-27T08:53:29.392Z"
}
Returns a list of attribute schemas for a sales channel
Authorizations
Path parameters
channel_idintegerRequiredExample:
The channel ID of the resource.
5
Query parameters
namestringOptional
Filters by name
Responses
200
Successful response
application/json
400
Bad Request
get
GET /api/channel/{channel_id}/attribute_schemas/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"pk": 1,
"name": "text",
"schema": {},
"channel": 1,
"created_date": "2025-06-27T08:53:29.392Z",
"modified_date": "2025-06-27T08:53:29.392Z"
}
]
Create a new attribute schema for a sales channel
Authorizations
Path parameters
channel_idintegerRequiredExample:
The channel ID of the resource.
5
Body
namestring · max: 255Required
schemaobjectOptional
channelintegerOptional
Sales channel id
Responses
201
Attribute schema created successfully
application/json
400
Bad Request
401
Unauthorized
403
Forbidden
post
POST /api/channel/{channel_id}/attribute_schemas/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"name": "text",
"schema": {},
"channel": 1
}
{
"pk": 1,
"name": "text",
"schema": {},
"channel": 1,
"created_date": "2025-06-27T08:53:29.392Z",
"modified_date": "2025-06-27T08:53:29.392Z"
}
Was this helpful?