You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Set answer access level to Unspecified via API

Received Response
11
Views
3
Comments

Summary:

Hello all,

We have a 1000 answers we need to change access level for all of them.

Content (required):

I am planning to use API and run a collection to update access level for all answers. I do not have an issue on adding new access level, simple done with the patch request:

PATCH: <site>/services/rest/connect/v1.4/answers/25642

{

    "accessLevels": {

       "id":52

    }

}

I need to run 2 API requests:

  1. I need to set access level to Unspecified (so it won't have any)
  2. Second API call will be adding one.

I have an issue with the 1st step. I guess because access level is a menu, it does not let me set to 0, null, or even empty it (like it would be with an array.)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!