Permalink
Browse files

Document category colors

  • Loading branch information...
1 parent e8f8be3 commit 0c46f2b3120b9919f1db2ddfe2b3e9992cb30066 @packagethief packagethief committed Aug 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 sections/categories.md
View
4 sections/categories.md
@@ -17,6 +17,7 @@ Get category
<#{type}-category>
<id type="integer"></id>
<name></name>
+ <color></color>
<account-id type="integer"></account-id>
<created-at type="datetime"></created-at>
<updated-at type="datetime"></updated-at>
@@ -52,9 +53,12 @@ Create category
``` xml
<#{type}-category>
<name>#{name}</name>
+ <color>#{hex-color}</color>
</#{type}-category>
```
+Color should be a [web color in hexadecimal format](http://en.wikipedia.org/wiki/Web_colors), e.g., ffcc33.
+
**Response:**
Status: 201 Created

0 comments on commit 0c46f2b

Please sign in to comment.