how to upload a document with a tag
Hello. Great API client :)
Here is my understanding of how to how to upload a document with a tag:
- upload the document
response = api.documents.documents.post({'document_type': 1},files={'file': file_object})
- create the tag
self.api.tags.tags.post({'label':tag, 'color': '#777777'})
- attach the document to the tag
>>> api.tags.tags(3).put({'documents_pk_list': '4'})
But I keep getting HTTP response 400. What am I doing wrong?