DELETE /v2/channel/:channel_id/blocks/:…

Resource URL:
http://api.are.na/v2/blocks/:id

Parameters:
:title (optional)

:description (optional)
Markdown formatted text.

:content (optional)
Markdown formatted text. For text block type only.

PUT /v2/blocks/:id

Resource URL:
http://api.are.na/v2/channels/:slug/blocks

Parameters:
:source (required*)
URL of content. Can be an Image, Embed, or Link.

:content (required*)
Textual content that's rendered with Github Flavored Markdown.

Either *:source or :content is required. Not both.

POST /v2/channels/:slug/blocks
GET /v2/blocks/:id

<table>
<tr>
<td><b>id</b></td>
<td>(Integer) </td>
<td>The internal ID of the block</td>
</tr>
<tr>
<td><b>title</b></td>
<td>(String, can be null)</td>
<td>The title of the block</td>
</tr>
<tr>
<td><b>updated_at</b></td>
<td>(Timestamp)</td>
<td>Timestamp when the block was last updated</td>
</tr>
<tr>
<td><b>created_at</b></td>
<td>(Timestamp)</td>
<td>Timestamp when the block was created</td>
</tr>
<tr>
<td><b>state</b></td>
<td>(String)</td>
<td>Represents the state of the blocks processing lifecycle (this will most often "Available" but can also be "Failure", "Processed", "Processing")</td>
</tr>
<tr>
<td><b>comment_count</b></td>
<td>(Integer)</td>
<td>The number of comments on a block</td>
</tr>
<tr>
<td><b>generated_title</b></td>
<td>(String)</td>
<td>If the title is present on the block, this will be identical to the title. Otherwise it will be a truncated string of the description or content. If neither of those are present, it will be "Untitled"</td>
</tr>
<tr>
<td><b>class</b></td>
<td>(String)</td>
<td>The type of block. Can be "Image", "Text", "Link", "Media", or "Attachment"</td>
</tr>
<tr>
<td><b>base_class</b></td>
<td>(String)</td>
<td>This will always be "Block"</td>
</tr>
<tr>
<td><b>content</b></td>
<td>(String, can be null)</td>
<td>If the block is of class "Text", this will be the text content as markdown</td>
</tr>
<tr>
<td><b>content_html</b></td>
<td>(String, can be null)</td>
<td>If the block is of class "Text", this will be the text content as HTML</td>
</tr>
<tr>
<td><b>description</b></td>
<td>(String, can be null)</td>
<td>This is used for captioning any type of block. Returns markdown.</td>
</tr>
<tr>
<td><b>description_html</b></td>
<td>(String, can be null)</td>
<td>This is used for captioning any type of block. Returns HTML</td>
</tr>
<tr>
<td><b>source</b></td>
<td>(Hash, can be null)</td>
<td>If the Block is saved from somewhere on the web, this returns a Hash representation of the source<br><br>
<table>
<tr>
<td><b>url</b></td>
<td>(String)</td>
<td>The url of the source</td>
</tr>
<tr>
<td><b>provider</b></td>
<td>(Hash)</td>
<td>A hash of more info about the provider
<b>name</b>: (String) The name of the source provider
<b>url</b>: (String) The hostname of the source provider
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><b>image</b></td>
<td>(Hash, can be null)</td>
<td>If the Block is of class "Image" or "Link", this will be a Hash representation of the various sizes of images that Arena provides (in the case of a "Link" it will be a screenshot of the website).
<br><br>
<table>
<tr>
<td><b>filename</b></td>
<td>(String)</td>
<td>Name of the file as it appears on the Arena filesystem</td>
</tr>
<tr>
<td><b>content_type</b></td>
<td>(String)</td>
<td>MIME type of the image (e.g. 'image/png')</td>
</tr>
<tr>
<td><b>updated_at</b></td>
<td>(Timestamp)</td>
<td>Timestamp of the last time the file was updated</td>
</tr>
<tr>
<td><b>thumb</b></td>
<td>(Hash)</td>
<td>Only contains url which is a URL of the thumbnail sized image (200x200)</td>
</tr>
<tr>
<td><b>display</b></td>
<td>(Hash)</td>
<td>Only contains url which is a URL of the display sized image (same aspect ratio as original image but with a maximim width of 600px or a maximum height of 600px, whichever comes first)</td>
</tr>
<tr>
<td><b>original</b></td>
<td>(Hash)</td>
<td> Contains url which is a URL of the original image as well <i>file_size</i> (an integer representation in bytes) and <i>file_size_display</i> (a nicer string representation of the file_size)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><b>user</b></td>
<td>(Hash)</td>
<td>Representation of the author of the block</td>
</tr>
<tr>
<td><b>connections</b></td>
<td>(Array)</td>
<td>An array of hash representations of each of the channels the block appears in</td>
</tr>
</table>

Attributes