Skip to content

Create a New Custom Activity Type

POST https://api.prosperworks.com/developer_api/v1/custom_activity_types

Field Type Details Default
name* string Name of the custom activity type.
icon_type* string Icon Type. Must be one of: "Message", "Phone", "Event", "Assignment", "Assessment", "Group", "Description", "Speaker Notes", "Forum", "Web", "Loyalty", "Content Paste", "Headset", "Share", "Navigation", "Notification", "Voicemail", "Room", "Edit", "Send", "Videocam", "Play Arrow", "Grocery Store", "Mic", "Camera Mic", "Todo"

* indicates a required field

Request Body

1
2
3
4
{
  "name": "New Activity",
  "icon_type": "Phone"
}

Example Requests

Create a New Custom Activity Type

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
curl --location --request POST "https://api.prosperworks.com/developer_api/v1/custom_activity_types" \
  --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
  --header "X-PW-Application: developer_api" \
  --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
  --header "Content-Type: application/json" \
  --data "{
  \"name\": \"New Activity\",
  \"icon_type\": \"Phone\"
}
"
1
2
3
4
5
6
7
8
9
{
    "id": 5,
    "company_id": 1,
    "icon_type": "Phone",
    "is_disabled": false,
    "is_interaction": false,
    "name": "New Activity",
    "is_default_task_type": null
}