Create export template attribute
An export template attribute is a field that belongs to an export template. Once created, the export template attribute will be added to every channel that is created from the export template in the productsup platform. This endpoint allows the creation of an export template attribute.
Authorization
bearerAuth ProductsUp Keycloak JWT bearer token.
In: header
Path Parameters
Export template id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://export-template-api.productsup.com/V1/export-templates/string/attributes" \ -H "Content-Type: application/json" \ -d '{ "fieldName": "color", "alias": "some alias", "mandatory": true, "type": "optional", "conditions": [], "flag": "colors", "isDefaultTrackingColumn": true, "isUniqueColumn": true, "order": 5, "deltaIgnore": true, "deltaKey": true, "automapIgnore": true, "description": "some description", "format": "String (Unicode Characters)", "examples": [ "some example" ] }'{
"data": {
"id": 995842,
"alias": "",
"mandatory": false,
"type": "optional",
"conditions": [],
"flag": "",
"isDefaultTrackingColumn": false,
"isUniqueColumn": false,
"order": 0,
"deltaIgnore": false,
"deltaKey": false,
"automapIgnore": false,
"description": "",
"format": null,
"export": {
"id": 58902,
"unpublishedChanges": true
},
"fieldname": "color",
"examples": [
null
]
}
}{
"errors": {
"message": "Request validation has encountered constraint violations.",
"errors": {
"fieldName": [
"This value should not be blank."
]
}
}
}{
"errors": {
"message": "Resource access denied."
}
}{
"errors": {
"message": "An Export Template Attribute with the same field name already exists."
}
}How is this guide?
Update export template metadata PUT
Update internal metadata for an export template channel.
Retrieve a single export template attribute GET
An export template attribute is a field that belongs to an export template. Once created, the export template attribute will be added to every channel that is created from the export template in the productsup platform. This endpoint shows a single export template attribute.