Creating a sharing URL through API

I need to be able to create a Shared URL link for people outside the Fibery system for viewing only. I know it can be done through the web interface but using that same code via a PUT call doesn’t enable the sharing. it give me the shared key but it does not work. Even when i format the url correctly and add the key to the end correctly.
https://company.fibery.io/Project_Management/Events/EventNameTest-33?sharing-key=XXXX-XXXX-XXXX-XXXX-XXXXXXXXX

this is the call
PUT
https://company.fibery.io/api/sharing/commands

{
  "id": "xxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
  "typeId": "3ecda640-505f-45a7-9666-6fbe2feab5a9",
  "meta": {
    "query": {
      "Exhibits Project Management/Archived": {
        "fibery/id": [
          "Exhibits Project Management/Archived",
          "fibery/id"
        ],
        "fibery/public-id": [
          "Exhibits Project Management/Archived",
          "fibery/public-id"
        ],
        "enum/name": [
          "Exhibits Project Management/Archived",
          "enum/name"
        ],
        "fibery/rank": [
          "Exhibits Project Management/Archived",
          "fibery/rank"
        ],
        "?accessToIcon": [
          "q/access?",
          [
            "Exhibits Project Management/Archived",
            "enum/icon"
          ]
        ],
        "enum/color": [
          "Exhibits Project Management/Archived",
          "enum/color"
        ],
        "enum/icon": [
          "Exhibits Project Management/Archived",
          "enum/icon"
        ]
      },
      "Exhibits Project Management/Load In": [
        "Exhibits Project Management/Load In"
      ],
      "Exhibits Project Management/Venue Address": [
        "Exhibits Project Management/Venue Address"
      ],
      "Exhibits Project Management/Venue": [
        "Exhibits Project Management/Venue"
      ],
      "Exhibits Project Management/Show Start": [
        "Exhibits Project Management/Show Start"
      ],
      "fibery/modification-date": [
        "fibery/modification-date"
      ],
      "Collaboration~Documents/References": {
        "q/from": [
          "Collaboration~Documents/References"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "fibery/creation-date": [
            "fibery/creation-date"
          ],
          "Collaboration~Documents/ParagraphSecret": [
            "Collaboration~Documents/ParagraphSecret"
          ],
          "Collaboration~Documents/ToEntityId": [
            "Collaboration~Documents/ToEntityId"
          ],
          "Collaboration~Documents/ToEntityType": {
            "fibery/id": [
              "Collaboration~Documents/ToEntityType",
              "fibery/id"
            ]
          },
          "Collaboration~Documents/FromEntityId": [
            "Collaboration~Documents/FromEntityId"
          ],
          "Collaboration~Documents/FromEntityType": {
            "fibery/id": [
              "Collaboration~Documents/FromEntityType",
              "fibery/id"
            ]
          },
          "Collaboration~Documents/FromEntityField": {
            "fibery/id": [
              "Collaboration~Documents/FromEntityField",
              "fibery/id"
            ]
          },
          "fibery/created-by": {
            "fibery/id": [
              "fibery/created-by",
              "fibery/id"
            ],
            "user/email": [
              "fibery/created-by",
              "user/email"
            ],
            "user/name": [
              "fibery/created-by",
              "user/name"
            ],
            "avatar/avatars": {
              "q/from": [
                "fibery/created-by",
                "avatar/avatars"
              ],
              "q/limit": "q/no-limit",
              "q/select": {
                "fibery/id": [
                  "fibery/id"
                ],
                "fibery/name": [
                  "fibery/name"
                ],
                "fibery/content-type": [
                  "fibery/content-type"
                ],
                "fibery/secret": [
                  "fibery/secret"
                ]
              }
            }
          }
        },
        "q/limit": "q/no-limit"
      },
      "Exhibits Project Management/Prep": [
        "Exhibits Project Management/Prep"
      ],
      "Exhibits Project Management/Event Positions": {
        "q/from": [
          "Exhibits Project Management/Event Positions"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "?access/check": [
            "q/access?",
            [
              "Exhibits Project Management/name"
            ]
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "Exhibits Project Management/name": [
            "Exhibits Project Management/name"
          ],
          "Exhibits Project Management/Crew": {
            "fibery/id": [
              "Exhibits Project Management/Crew",
              "fibery/id"
            ],
            "fibery/public-id": [
              "Exhibits Project Management/Crew",
              "fibery/public-id"
            ],
            "Exhibits Project Management/name": [
              "Exhibits Project Management/Crew",
              "Exhibits Project Management/name"
            ]
          },
          "Exhibits Project Management/Status": {
            "fibery/id": [
              "Exhibits Project Management/Status",
              "fibery/id"
            ],
            "fibery/public-id": [
              "Exhibits Project Management/Status",
              "fibery/public-id"
            ],
            "enum/name": [
              "Exhibits Project Management/Status",
              "enum/name"
            ],
            "?accessToIcon": [
              "q/access?",
              [
                "Exhibits Project Management/Status",
                "enum/icon"
              ]
            ],
            "enum/color": [
              "Exhibits Project Management/Status",
              "enum/color"
            ],
            "enum/icon": [
              "Exhibits Project Management/Status",
              "enum/icon"
            ]
          },
          "Exhibits Project Management/Hotel": {
            "fibery/id": [
              "Exhibits Project Management/Hotel",
              "fibery/id"
            ],
            "fibery/public-id": [
              "Exhibits Project Management/Hotel",
              "fibery/public-id"
            ],
            "enum/name": [
              "Exhibits Project Management/Hotel",
              "enum/name"
            ],
            "?accessToIcon": [
              "q/access?",
              [
                "Exhibits Project Management/Hotel",
                "enum/icon"
              ]
            ],
            "enum/color": [
              "Exhibits Project Management/Hotel",
              "enum/color"
            ],
            "enum/icon": [
              "Exhibits Project Management/Hotel",
              "enum/icon"
            ]
          },
          "Exhibits Project Management/Flights": {
            "fibery/id": [
              "Exhibits Project Management/Flights",
              "fibery/id"
            ],
            "fibery/public-id": [
              "Exhibits Project Management/Flights",
              "fibery/public-id"
            ],
            "enum/name": [
              "Exhibits Project Management/Flights",
              "enum/name"
            ],
            "?accessToIcon": [
              "q/access?",
              [
                "Exhibits Project Management/Flights",
                "enum/icon"
              ]
            ],
            "enum/color": [
              "Exhibits Project Management/Flights",
              "enum/color"
            ],
            "enum/icon": [
              "Exhibits Project Management/Flights",
              "enum/icon"
            ]
          },
          "fibery/rank": [
            "fibery/rank"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": 10
      },
      "?[\"q/count\",[\"Exhibits Project Management/Event Positions\",\"fibery/id\"]]": [
        "q/count",
        [
          "Exhibits Project Management/Event Positions",
          "fibery/id"
        ]
      ],
      "Exhibits Project Management/Quote Done": [
        "Exhibits Project Management/Quote Done"
      ],
      "Exhibits Project Management/Name": [
        "Exhibits Project Management/Name"
      ],
      "fibery/created-by": {
        "fibery/id": [
          "fibery/created-by",
          "fibery/id"
        ],
        "fibery/public-id": [
          "fibery/created-by",
          "fibery/public-id"
        ],
        "user/name": [
          "fibery/created-by",
          "user/name"
        ],
        "fibery/rank": [
          "fibery/created-by",
          "fibery/rank"
        ],
        "user/email": [
          "fibery/created-by",
          "user/email"
        ],
        "?[\"=\",[\"fibery/created-by\",\"fibery/active?\"],\"$true\"]": [
          "=",
          [
            "fibery/created-by",
            "fibery/active?"
          ],
          "$true"
        ],
        "avatar/avatars": {
          "q/from": [
            "fibery/created-by",
            "avatar/avatars"
          ],
          "q/limit": "q/no-limit",
          "q/select": {
            "fibery/id": [
              "fibery/id"
            ],
            "fibery/name": [
              "fibery/name"
            ],
            "fibery/content-type": [
              "fibery/content-type"
            ],
            "fibery/secret": [
              "fibery/secret"
            ]
          }
        }
      },
      "fibery/creation-date": [
        "fibery/creation-date"
      ],
      "user/Tasks": {
        "q/from": [
          "user/Tasks"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "?access/check": [
            "q/access?",
            [
              "Exhibits Project Management/name"
            ]
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "Exhibits Project Management/name": [
            "Exhibits Project Management/name"
          ],
          "user/Events": {
            "fibery/id": [
              "user/Events",
              "fibery/id"
            ],
            "fibery/public-id": [
              "user/Events",
              "fibery/public-id"
            ],
            "Exhibits Project Management/Name": [
              "user/Events",
              "Exhibits Project Management/Name"
            ]
          },
          "Exhibits Project Management/Due Date": [
            "Exhibits Project Management/Due Date"
          ],
          "Exhibits Project Management/Crew": {
            "fibery/id": [
              "Exhibits Project Management/Crew",
              "fibery/id"
            ],
            "fibery/public-id": [
              "Exhibits Project Management/Crew",
              "fibery/public-id"
            ],
            "Exhibits Project Management/name": [
              "Exhibits Project Management/Crew",
              "Exhibits Project Management/name"
            ]
          },
          "workflow/state": {
            "fibery/id": [
              "workflow/state",
              "fibery/id"
            ],
            "fibery/public-id": [
              "workflow/state",
              "fibery/public-id"
            ],
            "enum/name": [
              "workflow/state",
              "enum/name"
            ],
            "?accessToIcon": [
              "q/access?",
              [
                "workflow/state",
                "enum/icon"
              ]
            ],
            "enum/color": [
              "workflow/state",
              "enum/color"
            ],
            "enum/icon": [
              "workflow/state",
              "enum/icon"
            ]
          },
          "?[\"=\",[\"workflow/state\",\"workflow/Final\"],\"$true\"]": [
            "=",
            [
              "workflow/state",
              "workflow/Final"
            ],
            "$true"
          ],
          "fibery/rank": [
            "fibery/rank"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": 10
      },
      "?[\"q/count\",[\"user/Tasks\",\"fibery/id\"]]": [
        "q/count",
        [
          "user/Tasks",
          "fibery/id"
        ]
      ],
      "documents/documents": {
        "q/from": [
          "documents/documents"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "?access/check": [
            "q/access?",
            [
              "fibery/name"
            ]
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "fibery/name": [
            "fibery/name"
          ],
          "fibery/creation-date": [
            "fibery/creation-date"
          ],
          "fibery/container-app": {
            "fibery/id": [
              "fibery/container-app",
              "fibery/id"
            ],
            "fibery/title": [
              "fibery/container-app",
              "fibery/title"
            ]
          },
          "fibery/container-type": [
            "fibery/container-type"
          ],
          "fibery/container-entity-id": [
            "fibery/container-entity-id"
          ],
          "fibery/container-entity-type": {
            "fibery/id": [
              "fibery/container-entity-type",
              "fibery/id"
            ],
            "fibery/name": [
              "fibery/container-entity-type",
              "fibery/name"
            ]
          },
          "fibery/rank": [
            "fibery/rank"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": 10
      },
      "?[\"q/count\",[\"documents/documents\",\"fibery/id\"]]": [
        "q/count",
        [
          "documents/documents",
          "fibery/id"
        ]
      ],
      "Files/Files": {
        "q/from": [
          "Files/Files"
        ],
        "q/limit": "q/no-limit",
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "fibery/name": [
            "fibery/name"
          ],
          "fibery/content-type": [
            "fibery/content-type"
          ],
          "fibery/secret": [
            "fibery/secret"
          ]
        }
      },
      "Exhibits Project Management/Load Out": [
        "Exhibits Project Management/Load Out"
      ],
      "Exhibits Project Management/Timeline": [
        "Exhibits Project Management/Timeline"
      ],
      "user/Crew Flights": {
        "q/from": [
          "user/Crew Flights"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "enum/name": [
            "enum/name"
          ],
          "fibery/rank": [
            "fibery/rank"
          ],
          "?accessToIcon": [
            "q/access?",
            [
              "enum/icon"
            ]
          ],
          "enum/color": [
            "enum/color"
          ],
          "enum/icon": [
            "enum/icon"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": "q/no-limit"
      },
      "Exhibits Project Management/Clients": {
        "fibery/id": [
          "Exhibits Project Management/Clients",
          "fibery/id"
        ],
        "fibery/public-id": [
          "Exhibits Project Management/Clients",
          "fibery/public-id"
        ],
        "Exhibits Project Management/name": [
          "Exhibits Project Management/Clients",
          "Exhibits Project Management/name"
        ],
        "fibery/rank": [
          "Exhibits Project Management/Clients",
          "fibery/rank"
        ]
      },
      "Exhibits Project Management/Show End": [
        "Exhibits Project Management/Show End"
      ],
      "user/Crew Status": {
        "q/from": [
          "user/Crew Status"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "enum/name": [
            "enum/name"
          ],
          "fibery/rank": [
            "fibery/rank"
          ],
          "?accessToIcon": [
            "q/access?",
            [
              "enum/icon"
            ]
          ],
          "enum/color": [
            "enum/color"
          ],
          "enum/icon": [
            "enum/icon"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": "q/no-limit"
      },
      "user/Crew Hotels": {
        "q/from": [
          "user/Crew Hotels"
        ],
        "q/select": {
          "fibery/id": [
            "fibery/id"
          ],
          "fibery/public-id": [
            "fibery/public-id"
          ],
          "enum/name": [
            "enum/name"
          ],
          "fibery/rank": [
            "fibery/rank"
          ],
          "?accessToIcon": [
            "q/access?",
            [
              "enum/icon"
            ]
          ],
          "enum/color": [
            "enum/color"
          ],
          "enum/icon": [
            "enum/icon"
          ]
        },
        "q/order-by": [
          [
            [
              "fibery/rank"
            ],
            "q/asc"
          ]
        ],
        "q/limit": "q/no-limit"
      },
      "Exhibits Project Management/Quote Due Date": [
        "Exhibits Project Management/Quote Due Date"
      ],
      "Exhibits Project Management/Project Manager": {
        "fibery/id": [
          "Exhibits Project Management/Project Manager",
          "fibery/id"
        ],
        "fibery/public-id": [
          "Exhibits Project Management/Project Manager",
          "fibery/public-id"
        ],
        "Exhibits Project Management/name": [
          "Exhibits Project Management/Project Manager",
          "Exhibits Project Management/name"
        ],
        "fibery/rank": [
          "Exhibits Project Management/Project Manager",
          "fibery/rank"
        ]
      },
      "Exhibits Project Management/Lighting": [
        "Exhibits Project Management/Lighting"
      ],
      "Exhibits Project Management/Audio": [
        "Exhibits Project Management/Audio"
      ],
      "Exhibits Project Management/Video": [
        "Exhibits Project Management/Video"
      ],
      "fibery/id": [
        "fibery/id"
      ],
      "fibery/public-id": [
        "fibery/public-id"
      ]
    }
  }```
1 Like

I think i figured it out. I was grabbing the wrong ID number