Mappings
Retrieve detailed information for a specific mapping by its ID.
Unique identifier of the resource
1
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
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
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
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
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
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?