Closed mpickering closed 9 years ago
Thanks for asking! I'm looking into this and I'll get back to you soon with some answers and updated docs.
Thanks for your patience. We're working on updating these docs, and we'll clarify all of these points in a future update.
To your specific questions:
name
parameter would be included and the value would be the string null
.editable
is set to false
, the usr_download
parameter is omitted from the object.preview
parameter is for text previews (the first few lines of a snippet in the channel, for example) and the thumbnail
parameters are for images, so yes: both can exist on a file object.If you have further questions, feel free to send them to feedback@slack.com. We're going to continue monitoring the issues here, but response time will generally be faster at that email address.
I'm a bit confused about which fields are always required for all the different objects. For example.. I received a file object with two fields not specified in the API documentation,
comments_count
andims
.What does this snippet from the documentation mean?
Does that mean it will be omitted for unnamed files or it will be the string
"null"
?Does this mean that if
editable
is false thenurl_download
will be omitted or empty (""
)Are any of the thumbnail fields guaranteed to exist?
Can you have a preview and a thumbnail?
In short, it would be greatly appreciated if someone could clarify which of the fields were optional and which were always present.