Undocumented restrictions body parameters for POST /wiki/rest/api/content

As of current, I’m able to create content with restrictions via POST to /wiki/rest/api/content:

   {
      type: <content type>,
      title: <title>
      space: {
        key: <space key>
      },
      body: {
        <body>
      },
      restrictions: {
        update: {
          restrictions: {
            user: [
              {accountId: '<user accountId>'}
            ]
          }
        }
      }
    }

However, the restrictions parameter is currently not documented on https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-api-content-post

Is this a case of outdated / missing documentation or the parameter is something that will be removed / shouldn’t be working? I hope it’s not the later as it would be a major breaking change that’ll be a headache for apps depending on it.

8 Likes