Mappings
Retrieve detailed information for a specific mapping by its ID.
Unique identifier of the resource
1
Detailed information about the mapping.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/mappings/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
Update an existing Mapping instance by ID
Unique identifier of the resource
1
Mapping ID
Type of the mapping.
Input arguments in JSON format
{"value_dict":{"attributes__color":"red"}}
Output arguments in JSON format
{"default_value":"123","default_attribute":"attribute_1"}
Priority of the mapping
1
Key of the mapping
color
The date and time when the mapping object was created
2021-01-01T00:00:00Z
The date and time when the mapping object was last modified
2021-01-01T00:00:00Z
Mapping updated successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PUT /api/v1/mappings/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
Delete a specific Mapping instance by ID
Unique identifier of the resource
1
No content
No content
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
DELETE /api/v1/mappings/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partially update an existing Mapping instance by ID
Unique identifier of the resource
1
Mapping ID
Type of the mapping.
Input arguments in JSON format
{"value_dict":{"attributes__color":"red"}}
Output arguments in JSON format
{"default_value":"123","default_attribute":"attribute_1"}
Priority of the mapping
1
Key of the mapping
color
The date and time when the mapping object was created
2021-01-01T00:00:00Z
The date and time when the mapping object was last modified
2021-01-01T00:00:00Z
Mapping updated successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PATCH /api/v1/mappings/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
List Mappings
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filter by mapping type.
Filter by exact mapping key.
color
Filter by input_kwargs value dictionary.
{"attributes__color": "red"}
Filter by output_kwargs default value.
{"default_value": "123"}
Filter by output_kwargs default attribute
{"default_attribute": "attribute_1"}
Filter by priority
1
List of Mappings
Unauthorized Access
Server Error
GET /api/v1/mappings/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
]
Create a new Mapping instance
Mapping ID
Type of the mapping.
Input arguments in JSON format
{"value_dict":{"attributes__color":"red"}}
Output arguments in JSON format
{"default_value":"123","default_attribute":"attribute_1"}
Priority of the mapping
1
Key of the mapping
color
The date and time when the mapping object was created
2021-01-01T00:00:00Z
The date and time when the mapping object was last modified
2021-01-01T00:00:00Z
Mapping created successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
Server Error
POST /api/v1/mappings/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
{
"id": 1,
"mapping_type": "attribute",
"input_kwargs": {
"value_dict": {
"attributes__color": "red"
}
},
"output_kwargs": {
"default_value": "123",
"default_attribute": "attribute_1"
},
"priority": 1,
"mapping_key": "color",
"created_date": "2021-01-01T00:00:00Z",
"modified_date": "2021-01-01T00:00:00Z"
}
Was this helpful?