Activities

Changes an activity's kind, body, time, contact or deal. Stage changes (kind: stage) are written by Crevio when a deal moves and answer 409 activity_immutable.

patch/activities/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

ActivityRequest required
kind, 'note' | 'email' | 'call' | 'meeting'

What happened: note, email, call or meeting. Defaults to note on create. Stage changes are written when a deal moves and cannot be logged by hand.

contact, string nullable

Contact ID (con_...) the activity is about. Required unless kind is meeting or deal is set; with a deal it must be the deal's contact.

deal, string nullable

Deal ID (deal_...) the activity belongs to. Its contact becomes the activity's contact.

body, string

What was said or decided: the note, the email's gist, the call summary or the meeting minutes.

occurred_at, string date-time

When it happened. Defaults to now.

ends_at, string date-time nullable

When a meeting ended. Only for meeting, and not before occurred_at.

Response

Activity updated

Activity required
id, string required
object, string required
kind, 'note' | 'email' | 'call' | 'meeting' | 'stage' required
body, string nullable required
occurred_at, string date-time required
ends_at, string date-time nullable required
author_agent, string nullable required
metadata, object required
created_at, string date-time required
updated_at, string date-time required
author_user, string nullable required
contact, union required

ID by default, full object when expanded

deal, union required

ID by default, full object when expanded

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision