Export specific Organisation via REST v2 API

HI
Working 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/BasePack

Body 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"]
}

 

zeldakr's picture
125
Joined: Oct 7 2019 - 6:20am
Last seen: 2 years 9 months ago

0 Answers:

No answers yet
Feedback
randomness