Beispiele

POST /api/bookmarks
{
  "bookmark": {
    "public": false,
    "controller": "hosts",
    "name": "foo-bar",
    "query": "bar"
  }
}
201
{
  "name": "foo-bar",
  "controller": "hosts",
  "query": "bar",
  "public": false,
  "id": 980190963,
  "owner_id": 135138680,
  "owner_type": "User"
}

Parameter

Parametername Beschreibung
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

bookmark
verpflichtend

Validations:

  • Must be a Hash

bookmark[name]
verpflichtend

Validations:

  • Must be a String

bookmark[controller]
verpflichtend

Validations:

  • Must be a String

bookmark[query]
verpflichtend

Validations:

  • Must be a String

bookmark[public]
optional , nil erlaubt

Validations:

  • Must be one of: true, false, 1, 0.