API documentation
When adding an activity done with a contact, you can associate it with a type of activity. This is useful to categorize your activities done with your contacts.
An activity type belongs to an activity type categories.
By default, each account comes with a set of predefined activity type categories.
GET /activitytypecategories/
Name | Type | Description |
---|---|---|
limit | integer | Indicates the page size. |
page | integer | Indicates the page to return. |
{
"data": [
{
"id": 1,
"object": "activityTypeCategory",
"name": "Simple activities",
"account": {
"id": 1
},
"created_at": null,
"updated_at": null
},
{
"id": 2,
"object": "activityTypeCategory",
"name": "Sport",
"account": {
"id": 1
},
"created_at": null,
"updated_at": null
},
{
"id": 3,
"object": "activityTypeCategory",
"name": "Food",
"account": {
"id": 1
},
"created_at": null,
"updated_at": null
},
{
"id": 4,
"object": "activityTypeCategory",
"name": "Cultural activities",
"account": {
"id": 1
},
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "https:\/\/app.monicahq.com\/api\/activitytypecategories?page=1",
"last": "https:\/\/app.monicahq.com\/api\/activitytypecategories?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https:\/\/app.monicahq.com\/api\/activitytypecategories",
"per_page": 15,
"to": 4,
"total": 4
}
}
GET /activitytypecategories/:id
{
"data": {
"id": 1,
"object": "activityTypeCategory",
"name": "Simple activities",
"account": {
"id": 1
},
"created_at": null,
"updated_at": null
}
}
POST /activitytypecategories/
Name | Type | Description |
---|---|---|
name | string | Required. The name of the activity type. Max 255 characters. |
{
"name":"this is a name"
}
The API call returns an Activity type category object if the call succeeds.
{
"data": {
"id": 9,
"object": "activityTypeCategory",
"name": "This is a name",
"account": {
"id": 1
},
"created_at": "2018-07-13T16:30:37Z",
"updated_at": "2018-07-13T16:30:37Z"
}
}
PUT /activitytypecategories/:id
Name | Type | Description |
---|---|---|
name | string | Required. The name of the activity type. Max 255 characters. |
{
"name":"For my friend Leslie Knope"
}
{
"data": {
"id": 9,
"object": "activityTypeCategory",
"name": "This is a name",
"account": {
"id": 1
},
"created_at": "2018-07-13T16:30:37Z",
"updated_at": "2018-07-13T16:30:37Z"
}
}
DELETE /activitytypecategories/:id
The response sends back the id that was just deleted.
{
"deleted": true,
"id": 31
}
Features
Company
Resources
© 2018 — 2024