Ejemplos

POST /api/bookmarks
{
  "bookmark": {
    "public": false,
    "controller": "hosts",
    "name": "facts.architecture",
    "query": " facts.architecture = x86_64"
  }
}
201
{
  "name": "facts.architecture",
  "controller": "hosts",
  "query": "facts.architecture = x86_64",
  "public": false,
  "id": 980190963,
  "owner_id": 135138680,
  "owner_type": "User"
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Alcance por ubicación

Validations:

  • Must be a Integer

organization_id
opcional

Alcance por organización

Validations:

  • Must be a Integer

bookmark
requerido

Validations:

  • Must be a Hash

bookmark[name]
requerido

Validations:

  • Must be a String

bookmark[controller]
requerido

Validations:

  • Must be a String

bookmark[query]
requerido

Validations:

  • Must be a String

bookmark[public]
opcional , nil permitido

Validations:

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