Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI ReferenceChangelog
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Work request events

work_request_added

Experimental A work request was added.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_added.
dataobjectData of the event.
data[work_request]objectData of the work request associated with the event.
data[work_request][id]stringUnique identifier of the work request.
data[work_request][links]objectLinks related to the work request.
data[work_request][links][self]stringURL to fetch the details of the work request through the CMP Open API.
data[work_request][links][comments]stringURL to fetch comments of the work request through the CMP Open API.
data[work_request][links][campaigns]stringURL to create campaigns from the work request through the CMP Open API.
data[work_request][links][attachments]stringURL to add attachments to the work request through the CMP Open API.
data[work_request][links][creative_assets]stringURL to add creative assets to the work request through the CMP Open API.

Example

{
  "event_name": "work_request_added",
  "data": {
    "work_request": {
      "id": "6f910551b00a722e0418830cee6612",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612",
        "comments": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/comments",
        "campaigns": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/campaigns",
        "attachments": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/attachments",
        "creative_assets": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/creative-assets"
      }
    }
  }
}

work_request_modified

Experimental A work request's status, assignees, or any form field was modified.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_modified.
dataobjectData of the event.
data[work_request]objectData of the work request associated with the event.
data[work_request][id]stringUnique identifier of the work request.
data[work_request][modified_fields]stringList of work request fields that were modified.
data[work_request][identifiers_of_modified_form_fields]stringList of identifiers of the modified form fields of the work request.
data[work_request][links]objectLinks related to the work request.
data[work_request][links][self]stringURL to fetch the details of the work request through the CMP Open API.
data[work_request][links][comments]stringURL to fetch comments of the work request through the CMP Open API.
data[work_request][links][campaigns]stringURL to create campaigns from the work request through the CMP Open API.
data[work_request][links][attachments]stringURL to add attachments to the work request through the CMP Open API.
data[work_request][links][creative_assets]stringURL to add creative assets to the work request through the CMP Open API.

Example

{
  "event_name": "work_request_modified",
  "data": {
    "work_request": {
      "id": "6f910551b00a722e0418830cee6612",
      "modified_fields": ["status", "assignees", "form_fields"],
      "identifiers_of_modified_form_fields": [
        "title",
        "attachment",
        "creative_assets",
        "due_date",
        "brief",
        "73e05aa2b54nda3c320242ac1d5291"
      ],
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612",
        "comments": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/comments",
        "campaigns": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/campaigns",
        "attachments": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/attachments",
        "creative_assets": "https://api.cmp.optimizely.com/v3/work-requests/6f910551b00a722e0418830cee6612/creative-assets"
      }
    }
  }
}

work_request_removed

Experimental A work request was deleted.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_removed.
dataobjectData of the event.
data[work_request]objectData of the work request associated with the event.
data[work_request][id]stringUnique identifier of the work request.

Example

{
  "event_name": "work_request_removed",
  "data": {
    "work_request": {
      "id": "6f910551b00a722e0418830cee6612"
    }
  }
}

work_request_comment_added

Experimental A comment was posted in a work request.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_comment_added.
dataobjectData of the event.
data[comment_for]objectData of the work request related to this event.
data[comment_for][id]stringUnique identifier of the work request.
data[comment_for][links]objectLinks related to the work request.
data[comment_for][links][self]stringURL to fetch the details of the work request through the CMP Open API.
data[comment]objectData of the comment related to this event.
data[comment][id]stringUnique identifier of the comment.
data[comment][links]objectLinks related to the comment.
data[comment][links][self]stringURL to fetch the details of the comment through the CMP Open API.

Example

{
  "event_name": "work_request_comment_added",
  "data": {
    "comment_for": {
      "id": "21485ffd04804114bf9c2d01070f206a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/21485ffd04804114bf9c2d01070f206a"
      }
    },
    "comment": {
      "id": "5c01e84b23de4a4583870962bfa9e7f4",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/21485ffd04804114bf9c2d01070f206a/comments/5c01e84b23de4a4583870962bfa9e7f4"
      }
    }
  }
}

work_request_comment_modified

Experimental A work request's comment was modified.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_comment_modified.
dataobjectData of the event.
data[comment_for]objectData of the work request related to this event.
data[comment_for][id]stringUnique identifier of the work request.
data[comment_for][links]objectLinks related to the work request.
data[comment_for][links][self]stringURL to fetch the details of the work request through the CMP Open API.
data[comment]objectData of the comment related to this event.
data[comment][id]stringUnique identifier of the comment.
data[comment][links]objectLinks related to the comment.
data[comment][links][self]stringURL to fetch the details of the comment through the CMP Open API.

Example

{
  "event_name": "work_request_comment_modified",
  "data": {
    "comment_for": {
      "id": "21485ffd04804114bf9c2d01070f206a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/21485ffd04804114bf9c2d01070f206a"
      }
    },
    "comment": {
      "id": "5c01e84b23de4a4583870962bfa9e7f4",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/21485ffd04804114bf9c2d01070f206a/comments/5c01e84b23de4a4583870962bfa9e7f4"
      }
    }
  }
}

work_request_comment_removed

Experimental A comment was removed from a work request.

Payload

KeyTypeDescription
event_namestringName of the event. The value is work_request_comment_removed.
dataobjectData of the event.
data[comment_for]objectData of the work request related to this event.
data[comment_for][id]stringUnique identifier of the work request.
data[comment_for][links]objectLinks related to the work request.
data[comment_for][links][self]stringURL to fetch the details of the work request through the CMP Open API.
data[comment]objectData of the comment related to this event.
data[comment][id]stringUnique identifier of the comment.

Example

{
  "event_name": "work_request_comment_removed",
  "data": {
    "comment_for": {
      "id": "21485ffd04804114bf9c2d01070f206a",
      "links": {
        "self": "https://api.cmp.optimizely.com/v3/work-requests/21485ffd04804114bf9c2d01070f206a"
      }
    },
    "comment": {
      "id": "5c01e84b23de4a4583870962bfa9e7f4"
    }
  }
}