application/json

Body Required

New tag parameters

  • 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.

Responses

  • 200 application/json

    Item has been saved successfully

    Hide response attribute Show response attribute object
  • 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
curl \
 -X POST https://YOURSITE.infoodle.com/apiv2/tags \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"header_id":123,"name":"Tag A","public":1,"order":1}'
Request examples
{
  "header_id": 123,
  "name": "Tag A",
  "public": 1,
  "order": 1
}
Response examples (200)
{
  "id": 4325342
}
Response examples (401)
{
  "error": "Unauthorised"
}
Response examples (403)
{
  "error": "Invalid Permission"
}