POST/desk/api/v2/search/filters/{collection}/share.json

Share a searchfilter with one or more users

Path Params

  • Name
    collection
    Type
    integer
    required
    Description

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 OK
  • Code
    304
    Description
    304 Not Modified No Data
  • Code
    400
    Type
    object
    Schema
    Description
    400 Bad Request
    Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

Examples

200 OK

SearchFilterShareResponse
{
  "filter": {
    "collection": "string",
    "conditions": "string",
    "createdAt": "2024-07-25T17:17:03.062Z",
    "createdBy": {
      "delete": true,
      "id": 0,
      "meta": {},
      "type": 0
    },
    "deletedAt": "2024-07-25T17:17:03.062Z",
    "deletedBy": {
      "delete": true,
      "id": 0,
      "meta": {},
      "type": 0
    },
    "description": "string",
    "filter_args": {
      "aggregate": {
        "Distinct": true,
        "Field": "string",
        "Operation": "string"
      },
      "bulkDryExecute": true,
      "fields": [
        "string"
      ],
      "filter": [
        "string"
      ],
      "id": 0,
      "ids": [
        0
      ],
      "includes": [
        "string"
      ],
      "orderBy": "string",
      "orderMode": "asc",
      "page": 0,
      "pageOffset": 0,
      "pageSize": 0,
      "skipAggregation": true
    },
    "id": 0,
    "isShared": true,
    "name": "string",
    "state": "string",
    "updatedAt": "2024-07-25T17:17:03.062Z",
    "updatedBy": {
      "delete": true,
      "id": 0,
      "meta": {},
      "type": 0
    }
  },
  "userIds": [
    0
  ]
}