Search tag

POST /tags/search/{fromthisid}

Limited to those tags the user can see. Filtered by the posted fields. Returned in ID order

Path parameters

  • fromthisid integer Required

    The ID that is previous to the one to start from e.g. if IDs are 1,2,3 fromthisid as 1 will return 2,3

application/json

Body

1 or more Search parameters

  • search array[object]
    Hide search attributes Show search attributes object
    • by string

      any of the field names that are output from item or list calls

    • value string

      the search value for the term specified by the 'by'

Responses

  • 200 application/json

    List returned OK

    Hide response attributes Show response attributes object
    • id integer

      Minimum value is 1.

    • header_id integer

      Minimum value is 1.

    • name string
    • public integer

      Whether this is a public (1) or private tag (0)

      Minimum value is 0, maximum value is 1.

    • order integer

      The order this code appears in the list

      Minimum value is 0.

  • 401 application/json

    Authentication unauthorised

    Hide response attribute Show response attribute object
  • 403 application/json

    Invalid permission

    Hide response attribute Show response attribute object
POST /tags/search/{fromthisid}
curl \
 -X POST https://YOURSITE.infoodle.com/apiv2/tags/search/4 \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"search":[{"by":"name","value":"Test Item"}]}'
Request examples
{
  "search": [
    {
      "by": "name",
      "value": "Test Item"
    }
  ]
}
Response examples (200)
[
  [
    {
      "id": 123,
      "header_id": 123,
      "name": "Tag A",
      "public": 1,
      "order": 1
    }
  ]
]
Response examples (401)
{
  "error": "Unauthorised"
}
Response examples (403)
{
  "error": "Invalid Permission"
}