Actions
Bug #22036
closedImport directive API fail for user technique
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
How to reproduce¶
1. First, export the archive of a directive from user technique
curl --request GET \ --url 'http://<rudderserveradress>/rudder/api/latest/archives/export?directives=<directiveId>&include=all' \ --header 'content-type: application/json' \ --header 'x-api-token: <tokenapi>' \ - o /path/to/archive.zip
2. Try to import the archive
curl --request POST \ --url https://<rudderserveradress>/rudder/api/latest/archives/import \ --header 'content-type: multipart/form-data;' \ --header 'x-api-token: <tokenAPI>' \ --form archive=@/path/to/archive.zip
We have an error message:
{ "action": "import", "result": "error", "errorDetails": "Accumulated: Inconsistency: Technique 'toto/1.0' from archive has category 'ncf_techniques' but a technique with that name already exists in category '//ncf_techniques': it must be imported in the same category, please update your archive." }
Actions