PUT
/
api
/
v2
/
saved-queries
/
{saved_query_id}
/
permissions
{
  "data": [
    {
      "id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": {
        "time": "2023-11-07T05:31:56Z",
        "valid": true
      },
      "shared_to_user_id": {
        "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "valid": true
      },
      "query_id": 123,
      "public": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Authorization: Bearer $JWT_TOKEN

Headers

Prefer
integer
default:
0

Prefer header, used to specify a custom timeout in seconds using the wait parameter as per RFC7240.

Required range: x > 0

Path Parameters

saved_query_id
integer
required

ID of the saved query

Body

application/json
The request body for sharing a saved query or making it public
user_ids
string[]
public
boolean

Response

201
application/json
Created
data
object[]