Atlassian interview question

Design an API to tag things