Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Task events

task_metadata_modified

Any of the following task properties were modified:

  • Title
  • Campaign
  • Start at
  • Due at
  • Is completed
  • Is archived
  • Labels

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_metadata_modifed.
dataobjectData of the event.
data[task]objectData of the removed task.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch task through the CMP Open API.

Example

{
  "event_name": "task_metadata_modified",
  "data": {
    "task": {
      "id": "870825113a12950a7eeeb64a64236dff",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/870825113a12950a7eeeb64a64236dff"
      }
    }
  }
}

task_removed

A task was removed.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_removed.
dataobjectData of the event.
data[task]objectData of the removed task.
data[task][id]stringUnique identifier of the task.

Example

{
  "event_name": "task_removed",
  "data": {
    "task": {
      "id": "870825113a12950a7eeeb64a64236dff"
    }
  }
}

task_brief_added

A brief was added to a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_brief_added.
dataobjectData of the event.
data[task]objectData of the task associated with the brief.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][brief]stringURL to fetch the task brief through the CMP Open API.

Example

{
  "event_name": "task_brief_added",
  "data": {
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "brief": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/brief"
      }
    }
  }
}

task_brief_removed

A brief was removed from a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_brief_removed.
dataobjectData of the event.
data[task]objectData of the task associated with the brief.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.

Example

{
  "event_name": "task_brief_removed",
  "data": {
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
      }
    }
  }
}

task_brief_modified

A brief was modified for a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_brief_modified.
dataobjectData of the event.
data[task]objectData of the task associated with the brief.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][brief]stringURL to fetch the task brief through the CMP Open API.

Example

{
  "event_name": "task_brief_modified",
  "data": {
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "brief": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/brief"
      }
    }
  }
}

task_asset_added

A task's asset (article, image, video or raw file) was added.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_asset_added.
dataobjectData of the event.
data[task]objectData of the task associated with the deleted asset.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[asset]objectData of the asset associated with the event.
data[asset][id]stringUnique identifier of the asset.
data[asset][type]stringType of the asset. Value can be article, image, video, or raw_file.
data[asset][links]objectLinks related to the asset.
data[asset][links][self]stringURL to fetch the asset through the CMP Open API.
data[asset][links][task]stringURL to fetch the task of the asset through the CMP Open API.

Example

{
  "event_name": "task_asset_added",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
      }
    },
    "asset": {
      "id": "870825113a12950a7eeeb64a64236d49",
      "type": "image",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/images/870825113a12950a7eeeb64a64236d49",
        "task": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e"
      }
    }
  }
}

task_asset_removed

A task's asset (article, image, video or raw file) was removed.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_asset_removed.
dataobjectData of the event.
data[task]objectData of the task associated with the deleted asset.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[asset]objectData of the asset associated with the event.
data[asset][id]stringUnique identifier of the asset.
data[asset][type]stringType of the asset. Value can be article, image, video, or raw_file.

Example

{
  "event_name": "task_asset_removed",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
      }
    },
    "asset": {
      "id": "870825113a12950a7eeeb64a64236d49",
      "type": "image"
    }
  }
}

task_asset_modified

A task's asset (article, image, video or raw file) was modified. This event is triggered by the modification of the task asset's title, labels and versions (of image, video, or raw file).

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_asset_modified.
dataobjectData of the event.
data[task]objectData of the task associated with the modified asset.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[asset]objectData of the asset associated with the event.
data[asset][id]stringUnique identifier of the asset.
data[asset][type]stringType of the asset. Value can be article, image, video, or raw_file.
data[asset][links]objectLinks related to the asset.
data[asset][links][self]stringURL to fetch the asset through the CMP Open API.
data[asset][links][task]stringURL to fetch the task of the asset through the CMP Open API.
data[attributes_changed]arrayList of attributes that trigger the webhook.

Example

{
  "event_name": "task_asset_modified",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/assets"
      }
    },
    "asset": {
      "id": "870825113a12950a7eeeb64a64236d49",
      "type": "image",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/images/870825113a12950a7eeeb64a64236d49",
        "task": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e"
      }
    },
    "attributes_changed": ["title", "description", "expires_at"]
  }
}

task_asset_draft_added

A draft was added to a task's asset (image, video or raw file).

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_asset_draft_added.
dataobjectData of the event.
data[task]objectData of the task associated with the updated asset.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[asset]objectData of the asset for which a new draft was added.
data[asset][id]stringUnique identifier of the asset.
data[asset][type]stringType of the asset. Value can be image, video, or raw_file.
data[asset][links]objectLinks related to the asset.
data[asset][links][self]stringURL to fetch the asset through the CMP Open API.
data[asset][links][task]stringURL to fetch the task of the asset through the CMP Open API.

Example

{
  "event_name": "task_asset_draft_added",
  "data": {
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets"
      }
    },
    "asset": {
      "id": "4d4ef1639c1046d49f51f5ab8cbb3fdf",
      "type": "image",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/images/4d4ef1639c1046d49f51f5ab8cbb3fdf",
        "task": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
      }
    }
  }
}

task_asset_draft_removed

A draft was removed from a task's asset (image, video or raw file).

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_asset_draft_removed.
dataobjectData of the event.
data[task]objectData of the task associated with the updated asset.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[asset]objectData of the asset for which a new draft was added.
data[asset][id]stringUnique identifier of the asset.
data[asset][type]stringType of the asset. Value can be image, video, or raw_file.
data[asset][links]objectLinks related to the asset.
data[asset][links][self]stringURL to fetch the asset through the CMP Open API.
data[asset][links][task]stringURL to fetch the task of the asset through the CMP Open API.

Example

{
  "event_name": "task_asset_draft_removed",
  "data": {
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets"
      }
    },
    "asset": {
      "id": "4d43f1639c1046d49f51f5ab8cbb3fdf",
      "type": "image",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/images/4d43f1639c1046d49f51f5ab8cbb3fdf",
        "task": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf"
      }
    }
  }
}

task_custom_field_modified

Values were modified for a task's custom fields.

Payload

KeyTypeDescription
event_namestringName of the event. The value is task_custom_field_modified.
dataobjectData of the event.
data[modified_custom_fields]arrayArray of custom fields which were modified.
data[modified_custom_fields][\<index\>][id]stringUnique identifier of the custom field.
data[modified_custom_fields][\<index\>][links]stringLinks related to the custom field.
data[modified_custom_fields][\<index\>][links][self]stringURL to fetch the custom field through the CMP Open API.
data[task]objectData of the task associated with the custom fields.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[task][links][assets]stringURL to fetch the assets of the task through the CMP Open API.
data[task][links][custom_fields]stringURL to fetch the custom fields associated with the task through the CMP Open API.

Example

{
  "event_name": "task_custom_field_modified",
  "data": {
    "modified_custom_fields": [
      {
        "id": "45aafc5f9eec1cde2028d3245435c2",
        "links": {
          "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c2"
        }
      },
      {
        "id": "45aafc5f9eec1cde2028d3245435c3",
        "links": {
          "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c3"
        }
      },
      {
        "id": "45aafc5f9eec1cde2028d3245435c4",
        "links": {
          "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields/45aafc5f9eec1cde2028d3245435c4"
        }
      }
    ],
    "task": {
      "id": "3e34f1639c1046d49f51f5ab8cbb3fdf",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf",
        "assets": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/assets",
        "custom_fields": "https://api.cmp.optimizely.com/v3/tasks/3e34f1639c1046d49f51f5ab8cbb3fdf/custom-fields"
      }
    }
  }
}

content_preview_requested

A structured content preview was requested.

Payload

KeyTypeDescription
event_namestringName of the event. The value is content_preview_requested.
dataobjectData of the event.
data[assets]objectData of the assets associated with the event.
data[assets][structured_contents]array of ContentPreviewStructuredContentModelArray of structured contents.
data[organization]objectOrganization from which the preview request was fired.
data[organization][id]stringUnique identifier of organization.
linksobjectLinks related to the event.
links[acknowledge]stringURL to acknowledge the preview through the CMP Open API.
links[complete]stringURL to complete the preview through the CMP Open API.

Example

{
  "event_name": "content_preview_requested",
  "data": {
    "assets": {
      "structured_contents": [<structured_contents>]
    },
    "organization": {
      "id": "5d75447b7f1c1c000957d362"
    },
    "links": {
      "acknowledge": "https://api.cmp.optimizely.com/v3/structured-content/contents/1e7d1ebe28fd4378a0aa4cc300bc039e/versions/e790f3ec824544ea99d01c6f54c1d3c1/previews/b07bfc4c3d694e3d89982c9fc1698777/acknowledge",
      "complete": "https://api.cmp.optimizely.com/v3/structured-content/contents/1e7d1ebe28fd4378a0aa4cc300bc039e/versions/e790f3ec824544ea99d01c6f54c1d3c1/previews/b07bfc4c3d694e3d89982c9fc1698777/complete"
    }
  }
}

workflow_sub_step_updated

A workflow substep of a task has been updated. This webhook is fired when a substep has been started, completed, skipped or modified by changing the assignee or the due date.

Payload

KeyTypeDescription
event_namestringName of the event. The value is workflow_sub_step_updated.
dataobjectData of the event.
data[status]stringChange of the substep that triggered the webhook. Enum: started, completed, skipped, modified
data[task]objectData of the task associated with the substep.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[step]objectData of the step associated with the substep.
data[step][id]stringUnique identifier of the step.
data[sub_step]objectData of the substep.
data[sub_step][id]stringUnique identifier of the substep.
data[sub_step][links]objectLinks related to the substep.
data[sub_step][links][self]stringURL to fetch the substep through the CMP Open API.

Example

{
  "event_name": "workflow_sub_step_updated",
  "data": {
    "status": "started",
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
      }
    },
    "step": {
      "id": "5f68911d83eeb10591933b49",
    },
    "sub_step": {
      "id": "5f68911d83eeb10591933b4a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
      }
    },
  }
}

workflow_sub_step_comment_added

A top-level comment was added to a workflow substep of a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is workflow_sub_step_comment_added.
dataobjectData of the event.
data[task]objectData of the task associated with the substep.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[step]objectData of the step associated with the substep.
data[step][id]stringUnique identifier of the step.
data[sub_step]objectData of the substep.
data[sub_step][id]stringUnique identifier of the substep.
data[sub_step][links]objectLinks related to the substep.
data[sub_step][links][self]stringURL to fetch the substep through the CMP Open API.
data[sub_step][links][comments]stringURL to fetch the comments associated with the substep through the CMP Open API.
data[comment]objectData of the comment.
data[comment][id]stringUnique identifier of the comment.
data[comment][links]objectLinks related to the comment.
data[comment][links][self]stringURL to fetch the comment through the CMP Open API.

Example

{
  "event_name": "workflow_sub_step_comment_added",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
      }
    },
    "step": {
      "id": "5f68911d83eeb10591933b49",
    },
    "sub_step": {
      "id": "5f68911d83eeb10591933b4a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
        "comments": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments"
      }
    },
    "comment": {
      "id": "8f68911d83eeb10591933b4q",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments/8f68911d83eeb10591933b4q",
      }
    }
  }
}

workflow_sub_step_comment_modified

A top-level comment was modified in a workflow substep of a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is workflow_sub_step_comment_modified.
dataobjectData of the event.
data[task]objectData of the task associated with the substep.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[step]objectData of the step associated with the substep.
data[step][id]stringUnique identifier of the step.
data[sub_step]objectData of the substep.
data[sub_step][id]stringUnique identifier of the substep.
data[sub_step][links]objectLinks related to the substep.
data[sub_step][links][self]stringURL to fetch the substep through the CMP Open API.
data[sub_step][links][comments]stringURL to fetch the substep comments through the CMP Open API.
data[comment]objectData of the comment.
data[comment][id]stringUnique identifier of the comment.
data[comment][links]objectLinks related to the comment.
data[comment][links][self]stringURL to fetch the comment through the CMP Open API.

Example

{
  "event_name": "workflow_sub_step_comment_modified",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
      }
    },
    "step": {
      "id": "5f68911d83eeb10591933b49",
    },
    "sub_step": {
      "id": "5f68911d83eeb10591933b4a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
        "comments": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments"
      }
    },
    "comment": {
      "id": "8f68911d83eeb10591933b4q",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments/8f68911d83eeb10591933b4q",
      }
    }
  }
}

workflow_sub_step_comment_removed

A top-level comment was removed from a workflow substep of a task.

Payload

KeyTypeDescription
event_namestringName of the event. The value is workflow_sub_step_comment_removed.
dataobjectData of the event.
data[task]objectData of the task associated with the substep.
data[task][id]stringUnique identifier of the task.
data[task][links]objectLinks related to the task.
data[task][links][self]stringURL to fetch the task through the CMP Open API.
data[step]objectData of the step associated with the substep.
data[step][id]stringUnique identifier of the step.
data[sub_step]objectData of the substep.
data[sub_step][id]stringUnique identifier of the substep.
data[sub_step][links]objectLinks related to the substep.
data[sub_step][links][self]stringURL to fetch the substep through the CMP Open API.
data[sub_step][links][comments]stringURL to fetch the substep comments through the CMP Open API.
data[comment]objectData of the comment.
data[comment][id]stringUnique identifier of the comment.

Example

{
  "event_name": "workflow_sub_step_comment_removed",
  "data": {
    "task": {
      "id": "5f6a0312a5963d0591015e3e",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e",
      }
    },
    "step": {
      "id": "5f68911d83eeb10591933b49",
    },
    "sub_step": {
      "id": "5f68911d83eeb10591933b4a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a",
        "comments": "https://api.cmp.optimizely.com/v3/tasks/5f6a0312a5963d0591015e3e/steps/5f68911d83eeb10591933b49/sub-steps/5f68911d83eeb10591933b4a/comments",
      }
    },
    "comment": {
      "id": "8f68911d83eeb10591933b4q",
    }
  }
}