Publish content events
Changed onPublishes content events that contain new or changed data in referenced resources. To access this API, you must configure product-scoped OAuth2 authentication for your application.
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"eventMetadata": {
"id": "6ed0279c-35ed-4c7e-928e-25e46c080431",
"type": "ResourceUpdated",
"timestamp": "2020-06-11T15:23:45Z"
},
"key": {
"source": "b2fc6737-3d3f-4da2-afda-f80f25b89af9",
"instance": "myclient.myapp.com",
"resourceId": "order-12345",
"timestamp": 1500558736123
},
"actor": {
"identifier": "bob@a13a9998-e025-4751-8fee-72afdc0fe6d5@2cc88871-e942-4910-96e3-0521d7ae52f4",
"name": "Bob Roberts"
},
"action": {
"verb": "assigned",
"text": "a task"
},
"changes": {
"fields": [
{
"name": "projectStatus",
"value": "In progress",
"label": "Project Status",
"op": "replace",
"display": "expanded"
}
],
"users": [
{
"identifier": "bob@a13a9998-e025-4751-8fee-72afdc0fe6d5@2cc88871-e942-4910-96e3-0521d7ae52f4",
"name": "Bob Roberts"
}
],
"groups": [
{
"identifier": "c390a4bf-4f54-418a-87ca-5970c332ba17"
}
]
},
"contents": [
{
"url": "https://myapp.com/orders/1234",
"previewUrl": "https://myapp.com/orders/1234?preview",
"title": "Order request",
"searchText": "string",
"mimeType": "application/pdf",
"linkedToResource": true
}
]
}Response
Success
Changes
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking