curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/createanswerboard \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "addedRoles": [
    {
      "sourceDocumentSpec": {
        "url": "<string>"
      },
      "person": {
        "name": "George Clooney",
        "obfuscatedId": "abc123"
      },
      "group": {
        "type": "DEPARTMENT",
        "id": "<string>",
        "name": "<string>"
      },
      "role": "OWNER"
    }
  ],
  "removedRoles": [
    {
      "sourceDocumentSpec": {
        "url": "<string>"
      },
      "person": {
        "name": "George Clooney",
        "obfuscatedId": "abc123"
      },
      "group": {
        "type": "DEPARTMENT",
        "id": "<string>",
        "name": "<string>"
      },
      "role": "OWNER"
    }
  ],
  "audienceFilters": [
    {
      "fieldName": "type",
      "values": [
        {
          "value": "Spreadsheet",
          "relationType": "EQUALS"
        },
        {
          "value": "Presentation",
          "relationType": "EQUALS"
        }
      ]
    }
  ]
}'
{
  "boardResult": {
    "board": {
      "permissions": {
        "write": {
          "scopeType": "GLOBAL",
          "create": true,
          "update": true,
          "delete": true
        }
      },
      "id": 123,
      "createTime": "2023-11-07T05:31:56Z",
      "updateTime": "2023-11-07T05:31:56Z",
      "creator": {
        "name": "George Clooney",
        "obfuscatedId": "abc123"
      },
      "updatedBy": {
        "name": "George Clooney",
        "obfuscatedId": "abc123"
      },
      "itemCount": 123,
      "roles": [
        {}
      ]
    },
    "trackingToken": "<string>"
  },
  "error": {
    "errorCode": "NAME_EXISTS"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

Body

application/json
Answer Board content plus any additional metadata for the request.
name
string
required

The unique name of the Collection.

description
string

A brief summary of the Collection's contents.

addedRoles
object[]

A list of added user roles for the Collection.

removedRoles
object[]

A list of removed user roles for the Collection.

audienceFilters
object[]

Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search.

Response

200
application/json
OK
boardResult
object
error
object