ActivityTypes

Add new activity type

Changed on

Adds a new activity type.

post/activityTypes

Request

  • Base URL
    https://api.pipedrive.com/v1
  • Auth
    • API key in header x-api-token
    • or OAuth 2
      Authorization code: https://oauth.pipedrive.com/oauth/authorize
      Token URL: https://oauth.pipedrive.com/oauth/token scopes: admin

Request body

namestring required

The name of the activity type

icon_key'task' | 'email' | 'meeting' | 'deadline' | 'call' | 'lunch' | 'calendar' | 'downarrow' | 'document' | 'smartphone' | 'camera' | 'scissors' | 'cogs' | 'bubble' | 'uparrow' | 'checkbox' | 'signpost' | 'shuffle' | 'addressbook' | 'linegraph' | 'picture' | 'car' | 'world' | 'search' | 'clip' | 'sound' | 'brush' | 'key' | 'padlock' | 'pricetag' | 'suitcase' | 'finish' | 'plane' | 'loop' | 'wifi' | 'truck' | 'cart' | 'bulb' | 'bell' | 'presentation' required

Icon graphic to use for representing this activity type

colorstring

A designated color for the activity type in 6-character HEX format (e.g. FFFFFF for white, 000000 for black)

Example request

{
  "name": "call",
  "color": "FFFFFF"
}

Response

The activity type was successfully created

successboolean

If the response is successful or not

Changes

    • breaking

      the // response's property format changed from datetime to date-time for status

    • breaking

      the // response's property format changed from datetime to date-time for status

    • breaking

      removed the media type application/x-www-form-urlencoded from the request body

    • info

      added the media type application/json to the request body