Business Workspace API not updating a category attribute for a Workspace

Options

Hello everyone, we are trying to test a request where we update a category attribute for a Business Workspace, we saw in the API documentation for BW REST 21.4 that they show an example for "updating" a late business workspace with the POST Create BW request.

We tried this request:

{
 "name": "Solicitation A1",
 "description": "Workspace Solicitation A1",
 "parent_id": "126992",
 "ibo_workspace_id": "191000",
 "template_id": "126334",
 "roles": {
  "categories": {
   "127212": {
    "127212_4": "102"
   }
  }
 }
}

We wanted to add the number "102" in an attribute that represents something like a registration number. (We also tried a request that holds every single attribute from all categories already applied to this Workspace but with one attribute changed to what we wanted and it still didn't do the update).

parent_id is the folder that holds the Workspace, and ibo_workspace_id is the Node ID of the Workspace, and template_id is for the template that we used to make the Workspace.

Weirdly enough, this request doesn't return an error, but it doesn't do anything. This is our response:

{
  "links": {
    "data": {
      "self": {
        "body": "",
        "content_type": "",
        "href": "/api/v2/businessworkspaces/",
        "method": "POST",
        "name": ""
      }
    }
  },
  "results": {
    "direct_open": true,
    "id": 191000,
    "sub_folder_id": 0
  }
}

I see that in their example the request that they make for an update also holds ID's for Business Objects, we don't have any BO's for this Workspace.

Is there a parameter that we have to include/exclude in order to make this request work? Has anyone else had problems updating a Workspace?

Thank you!

Comments

  • SOLUTION:

    Don't use the update function from the Business Workspace REST API, try to use the Upgrade Category on a Node request from Content Server REST API, where you use this in Postman: {{baseUrl}}/v2/nodes/:id/categories/:category_id/

    :id = Node ID of the Business Workspace

    :category_id = ID of the category where the attribute that you want to change is located in like "127212".

    And in the Form Body you add this:

    And this is basically how you edit the attribute 127212_11 to have the value that you specify.

    For an attribute like 127212_X, if you want to see what the number X is, you have to do a GET on the Business Workspace you work with and check the categories and the attributes that are used.