zeldakr Posted February 14, 2020 Share Posted February 14, 2020 HIWorking with Postman.Need correct construct for the export of specific organisation (BasePack). That export must be used as import on NEWorganisation.Organisation paths:/organizations/organization_1/organizations/NEW/organizations/organization_1/organizations/BasePackBody for Export01 - export work BUT import result = ' Import failed. Import of the root to an organization is not allowed.'{"roles": ["ROLE_USER","ROLE_ADMINISTRATOR" ,"ROLE_MANAGER|BasePack","ROLE_OWNER|BasePack","ROLE_MEMBER|BasePack"],"users": ["superuser","zelda|BasePack" ,"kruger|BasePack","joco|BasePack" ,"jasperadmin|BasePack","joeuser|BasePack"],"uris": ["/organizations/organization_1/organizations/BasePack"],"parameters": ["repository-permissions"]}Body for Export02 - As soon as I add the organization option I get the following error: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><errorDescriptor><errorCode>serialization.error</errorCode><message>Cannot deserialize instance of `java.lang.String` out of START_ARRAY token</message><parameters><parameter>organization</parameter></parameters></errorDescriptor>{"roles": ["ROLE_USER","ROLE_ADMINISTRATOR" ,"ROLE_MANAGER|BasePack","ROLE_OWNER|BasePack","ROLE_MEMBER|BasePack"],"users": ["superuser","zelda|BasePack" ,"kruger|BasePack","joco|BasePack" ,"jasperadmin|BasePack","joeuser|BasePack"],"uris":["/"],"organization":["/organizations/organization_1/organizations/BasePack"],"parameters": ["repository-permissions"]} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now