Create an export template tag
Creates a tag on an export template. Tags attach key-value metadata to the template. **Publishing required.** This request stores a draft. The change becomes available in the Productsup platform only after you publish the export template with `POST /V2/export-templates/{id}/publish`. **Reserved keys.** `export_feedback_compatible` and `channel_health_compatible` back the `capabilities` of the V2 export template and follow its rules: internal users only, value `1` only. Creating one that already exists returns the existing tag instead of a duplicate.
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/export-template-tags" \ -H "Content-Type: application/json" \ -d '{ "key": "some key", "value": "some value" }'{
"data": {
"id": 56125,
"key": "some key",
"value": "some value"
}
}{
"errors": {
"message": "Request validation has encountered constraint violations.",
"errors": {
"key": [
"Invalid value provided. Expected type: string, actual type: null."
],
"value": [
"This field is missing."
]
}
}
}{
"errors": {
"message": "Resource access denied."
}
}{
"errors": {
"message": "Export template with id 123 not found."
}
}How is this guide?