Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.06 KB

message-categories.md

File metadata and controls

49 lines (34 loc) · 1.06 KB

Message Categories

Creating Categories

POST /projects/{project_id}/messageCategories.json

tw.projects.createMessageCategory(project_id, {
	"category": {
		// --
	}
})

Retrieve a Single Category

GET /messageCategories/{id}.json

tw.messageCategories.get(category_id)

Retrieving all of a Projects Categories

GET /projects/{project_id}/messageCategories.json

tw.projects.getMessageCategories(project_id)

Updating a Category

PUT /messageCategories/{id}.json

tw.messageCategories.update(category_id, {
	"category": {
		// --
	}
})

Destroying a Category

DELETE /messageCategories/{id}.json

tw.messageCategories.delete(category_id)