Hi! I am trying to create a collection using the command bw get template org-collection | jq ‘.name=“My First Collection”’| bw encode | bw create org-collection --organizationid a1cffc94-bdac-4e55-9571-c98e9d3be161 --session fi/soX5HsGCyMl01ugSw8CPDZIpFHoI5H4EQDDMkh0WcaHK8bB+T7ldIXxD82Mk1UrYsdSymN4v04Gca6K3DAg==
but every time I get an error
“organizationid
option does not match request object.”
in this case, the organization id is passed in the options and it is correct
please tell me what the problem might be and is it even possible to create collections through the CLI?
@Alexander_Vaskin Welcome to the forum!
I am not an expert on the CLI syntax, but I believe the issue is that you also need to set the .organizationID
value within the template (using jq
), as shown in this example.
That is exactly the problem (just tried it).
Thanks a lot for the hint, I was really able to move on with it. But now there is an error
“User is not part of organization”
bw get template org-collection | jq “.name = "Org Name" |.groups = | .organizationId="a1cffc94-bdac-4e55-9571-c98e9d3be161"” | bw encode | bw create org-collection --organizationid a1cffc94-bdac-4e55-9571-c98e9d3be161 --session MZwPTDWRtWkxzqrTzZQ/14YClRrGVNz3CExbI0bIPi59PsD72Hn80czTKw4Xr0xrZZG7hRFtE3yRcZfZCId7ew==
? Master password: [hidden]
User is not part of organization
although the user I logged in to is the owner of the organization, what could be the problem?