Jump to content
We've recently updated our Privacy Statement, available here ×

Export specific Organisation via REST v2 API


zeldakr

Recommended Posts

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

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...