Matters#index
Retrieves all firm matters
Response:
Returns a 200 OK with an array of matters:
[
{
"id": 1,
"number": null,
"title": "John Doe's Matter",
"description": null,
"attorney_id": null,
"client_id": 1,
"created_at": "2019-08-22T21:27:00.253-05:00",
"updated_at": "2019-08-22T21:27:00.253-05:00",
"archived": false,
"discarded_at": null,
"settings": null,
"firm_id": 1,
"receipt_number": null,
"preference_category_id": null,
"priority_date": null,
"priority_date_status": "undefined",
"invoice_id": null,
"created_by_migration": null,
"status": null,
"type": null
}
]
Matters#show
Returns a single matter
Response:
Returns a 200 OK with a single matter:
{
"id": 1,
"number": null,
"title": "John Doe's Matter",
"description": null,
"attorney_id": null,
"client_id": 1,
"created_at": "2019-08-22T21:27:00.253-05:00",
"updated_at": "2019-08-22T21:27:00.253-05:00",
"archived": false,
"discarded_at": null,
"settings": null,
"firm_id": 1,
"receipt_number": null,
"preference_category_id": null,
"priority_date": null,
"priority_date_status": "undefined",
"invoice_id": null,
"created_by_migration": null,
"type": null,
"status": null
}
Matters#create
Creates a new matter. Keep in mind to send matter data inside a matter root key.
You should pass a JSON with the following parameters:
client_id integer
required
{
"matter": {
"number": "1234",
"title": "Some title",
"description": "Some description",
"client_id": 8116,
"user_ids": [1, 2]
}
}
Response:
Returns a 201 created.
Matters#update
Updates an existing matter.
You should pass a JSON with the following parameters:
client_id integer
required
{
"matter": {
"number": "6789",
"title": "New title",
"description": "New description",
"client_id": 1000,
"user_ids": [1, 2]
}
}
Response:
Returns 200 OK
Matters#destroy
Destroys an existing contact
Response:
Returns 200 OK