Update a textual announcement visible to some set of users based on department and location.
Announcement content. Id need to be specified for the announcement.
OK
Invalid request
Not Authorized
Too Many Requests
{- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "title": "string",
- "body": {
- "text": "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
- "structuredList": [
- {
- "document": {
- "id": "string",
- "datasource": "string",
- "connectorType": "API_CRAWL",
- "docType": "string",
- "content": {
- "fullTextList": [
- "string"
]
}, - "containerDocument": { },
- "parentDocument": { },
- "title": "string",
- "url": "string",
- "metadata": {
- "container": "container",
- "parentId": "JIRA_EN-1337",
- "createTime": "2000-01-23T04:56:07.000Z",
- "datasource": "datasource",
- "author": {
- "name": "name"
}, - "documentId": "documentId",
- "updateTime": "2000-01-23T04:56:07.000Z",
- "mimeType": "mimeType",
- "objectType": "Feature Request",
- "components": [
- "Backend",
- "Networking"
], - "status": [
- "Done"
], - "customData": {
- "someCustomField": "someCustomValue"
}
}, - "sections": [
- {
- "title": "string",
- "url": "string"
}
]
}, - "text": "Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."
}
]
}, - "emoji": "string",
- "thumbnail": {
- "photoId": "string",
- "url": "string"
}, - "banner": {
- "photoId": "string",
- "url": "string"
}, - "audienceFilters": [
- {
- "fieldName": "type",
- "values": [
- {
- "value": "Spreadsheet",
- "relationType": "EQUALS"
}, - {
- "value": "Presentation",
- "relationType": "EQUALS"
}
]
}
], - "sourceDocumentId": "string",
- "hideAttribution": true,
- "channel": "MAIN",
- "postType": "TEXT",
- "isPrioritized": true,
- "viewUrl": "string",
- "id": 0
}
{- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "title": "string",
- "body": {
- "text": "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
- "structuredList": [
- {
- "document": {
- "id": "string",
- "datasource": "string",
- "connectorType": "API_CRAWL",
- "docType": "string",
- "content": {
- "fullTextList": [
- "string"
]
}, - "containerDocument": { },
- "parentDocument": { },
- "title": "string",
- "url": "string",
- "metadata": {
- "container": "container",
- "parentId": "JIRA_EN-1337",
- "createTime": "2000-01-23T04:56:07.000Z",
- "datasource": "datasource",
- "author": {
- "name": "name"
}, - "documentId": "documentId",
- "updateTime": "2000-01-23T04:56:07.000Z",
- "mimeType": "mimeType",
- "objectType": "Feature Request",
- "components": [
- "Backend",
- "Networking"
], - "status": [
- "Done"
], - "customData": {
- "someCustomField": "someCustomValue"
}
}, - "sections": [
- {
- "title": "string",
- "url": "string"
}
]
}, - "text": "Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."
}
]
}, - "emoji": "string",
- "thumbnail": {
- "photoId": "string",
- "url": "string"
}, - "banner": {
- "photoId": "string",
- "url": "string"
}, - "audienceFilters": [
- {
- "fieldName": "type",
- "values": [
- {
- "value": "Spreadsheet",
- "relationType": "EQUALS"
}, - {
- "value": "Presentation",
- "relationType": "EQUALS"
}
]
}
], - "sourceDocumentId": "string",
- "hideAttribution": true,
- "channel": "MAIN",
- "postType": "TEXT",
- "isPrioritized": true,
- "viewUrl": "string",
- "draftId": 342,
- "permissions": {
- "write": {
- "scopeType": "GLOBAL",
- "create": true,
- "update": true,
- "delete": true
}
}, - "id": 0,
- "author": {
- "name": "George Clooney",
- "obfuscatedId": "abc123"
}, - "createTimestamp": 0,
- "lastUpdateTimestamp": 0,
- "updatedBy": {
- "name": "George Clooney",
- "obfuscatedId": "abc123"
}, - "viewerInfo": {
- "isDismissed": true,
- "isRead": true
}, - "sourceDocument": {
- "id": "string",
- "datasource": "string",
- "connectorType": "API_CRAWL",
- "docType": "string",
- "content": {
- "fullTextList": [
- "string"
]
}, - "containerDocument": { },
- "parentDocument": { },
- "title": "string",
- "url": "string",
- "metadata": {
- "container": "container",
- "parentId": "JIRA_EN-1337",
- "createTime": "2000-01-23T04:56:07.000Z",
- "datasource": "datasource",
- "author": {
- "name": "name"
}, - "documentId": "documentId",
- "updateTime": "2000-01-23T04:56:07.000Z",
- "mimeType": "mimeType",
- "objectType": "Feature Request",
- "components": [
- "Backend",
- "Networking"
], - "status": [
- "Done"
], - "customData": {
- "someCustomField": "someCustomValue"
}
}, - "sections": [
- {
- "title": "string",
- "url": "string"
}
]
}, - "isPublished": true
}