Examples

PUT /api/bookmarks/980190962-foo
{
  "bookmark": {
    "public": false,
    "controller": "hosts",
    "name": "facts.architecture",
    "query": " facts.architecture = x86_64"
  }
}
200
{
  "name": "facts.architecture",
  "controller": "hosts",
  "query": "facts.architecture = x86_64",
  "public": false,
  "id": 980190962,
  "owner_id": 135138680,
  "owner_type": "User"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

bookmark
required

Validations:

  • Hash

bookmark[name]
optional

Validations:

  • String

bookmark[controller]
optional

Validations:

  • String

bookmark[query]
optional

Validations:

  • String

bookmark[public]
optional , nil allowed

Validations:

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