Create tag

To create a tag:

client = SAClient()
 
client.create_annotation_class(
   project="Cars",
   name="tag instance",
   color="#FFCF7D",
   class_type="tag"
)

📘

If the class name is already taken, you'll see this message: “Annotation class already exists.”

Upload tag

To upload a tag:

{
           "meta": {
               "type": "tag",
               "className": "For Tag",
               "attributes": [
                   {
                       "name": "Red",
                       "groupName": "Color"
                   }
               ]
           }
       }
   ]
}

Description:

  • “type”: enum - The class type is a tag.
  • “className”: string - Class Name
  • “attributes”: array of objects - List of all the attributes.
    • “name”: string - Attribute Name.
    • “groupName”: string - Attribute group name.

🚧

The field attributes, name, and groupName aren't mandatory.