Skip to content

Create a New Activity

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

Request body

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "parent": {
    "type": "person",
    "id": 27140359
  },
  "type": {
    "category": "user",
    "id": 0
  },
  "details": "This is the description of this note"

}

Example Requests

Create New Note

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
curl --location --request POST "https://api.prosperworks.com/developer_api/v1/activities" \
  --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 "{
  \"parent\": {
    \"type\": \"person\",
    \"id\": 27140359
  },
  \"type\": {
    \"category\": \"user\",
    \"id\": 0
  },
  \"details\": \"This is the description of this note\"

}"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
  "id": 3064242278,
  "parent": {
    "id": 27140359,
    "type": "person"
  },
  "type": {
    "id": 0,
    "category": "user"
  },
  "user_id": 137658,
  "details": "This is the description of this note",
  "activity_date": 1496772355,
  "old_value": null,
  "new_value": null,
  "date_created": 1496772355,
  "date_modified": 1496772355
}