Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.41 KB

categories.md

File metadata and controls

75 lines (56 loc) · 1.41 KB

Categories

Get Categories

  • GET v3/categories will return all account Categories.
[
	{
		"id":65707070,
		"name":"Marketing Projects",
		"default":false
	},
	{
		"id":65707071,
		"name":"Uncategorized",
		"default":true
	}
]

Get Category

  • GET v3/categories/65707070 will return the specified Category.
{
	"id":65707070,
	"name":"Marketing Projects",
	"default":false
}

Create Category

  • POST v3/categories will create a new Category.
{
	"name": "Rockwall Phase I"
}

201 Created will be returned along with the JSON of the category (Get Category) if the record is added.

Update Category

  • PUT v3/categories/65707070 will update the category.
{
	"name": "Rockwall Phase II"
}

200 OK will be returned along with the JSON of the category (Get Category) if the record is updated. 403 Forbidden will be returned in case of invalid access.

Delete Category

  • DELETE v3/categories/65707070 will delete the category specified.

204 No Content will be returned if the record is deleted. 403 Forbidden will be returned in case of invalid access.