Content
dispatch.all.readdispatch.all.readwritedispatch.targets.readdispatch.targets.readwrite
Find all Targets.
pageToken | Optional | string | Specifies the page to read. Use a value provided by earlier responses in Example: |
limit | Optional | integer 1 - 100 (Default: 20) | Limit the return page size to the specified count. Example: |
200 | application/json | |
Example response body{ "count": 1, "pageToken": "eyJmaXJzdCI6InBhZ2UifQ==", "nextPageToken": "eyJzZWNvbmQiOiJwYWdlIn0=", "items": [ { "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": true, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-01T14:57:18.227Z", "httpEndpoint": "https://messages.example.com" } ] } | ||
<< | No Content |
dispatch.all.readwritedispatch.targets.readwrite
Create a new Target. You can read more about targets Configuration.
name | Required | string | The name of the Target |
description | Required | string | A description of the Target |
tags | Optional | array | An array of |
type | Required | string WEBHOOK AWS_SQS AWS_SNS | The type of Target |
httpEndpoint | Optional | string URL | The HTTP endpoint messages will be delivered to Required for |
awsRegion | Optional | string | The region the AWS resource is located in Required for |
roleArn | Optional | string AWS ARN | The AWS IAM role that Dispatch will assume in order to deliver messages Required for |
queueUrl | Optional | string URL | The URL of the AWS SQS queue messages will be delivered to Required for |
topicArn | Optional | string AWS ARN | The ARN of the AWS SNS topic messages will be delivered to Required for |
200 | application/json | A Target |
Example response body{ "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": true, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-01T14:57:18.227Z", "httpEndpoint": "https://messages.example.com" } | ||
<< | No Content |
E-DI-3002 | Unknown target type |
dispatch.all.readdispatch.all.readwritedispatch.targets.readdispatch.targets.readwrite
targetId | string | A Target ID Example: |
200 | application/json | A Target |
Example response body{ "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": true, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-01T14:57:18.227Z", "httpEndpoint": "https://messages.example.com" } | ||
404 | No Content | The Target was not found. |
<< | No Content |
dispatch.all.readwritedispatch.targets.readwrite
targetId | string | A Target ID Example: |
name | Optional | string | The name of the Target |
description | Optional | string | A description of the Target |
tags | Optional | array | An array of |
httpEndpoint | Optional | string URL | The HTTP endpoint messages will be delivered to For |
awsRegion | Optional | string | The region the AWS resource is located in For |
roleArn | Optional | string AWS ARN | The AWS IAM role that Dispatch will assume in order to deliver messages For |
queueUrl | Optional | string URL | The URL of the AWS SQS queue messages will be delivered to For |
topicArn | Optional | string AWS ARN | The ARN of the AWS SNS topic messages will be delivered to For |
200 | application/json | A Target |
Example response body{ "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": true, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-01T14:57:18.227Z", "httpEndpoint": "https://messages.example.com" } | ||
<< | No Content |
E-DI-3001 | Target not found |
|
dispatch.all.readwritedispatch.targets.readwrite
Enable a Target. You can read more about enabling and disabling Targets in Configuration.
targetId | string | A Target ID Example: |
200 | application/json | The Target target was enabled successfully |
Example response body{ "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": true, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-01T14:57:18.227Z", "httpEndpoint": "https://messages.example.com" } | ||
<< | No Content |
E-DI-3001 | Target not found |
E-DI-3003 | Cannot enable an already enabled target |
E-DI-3010 | Unknown error (Webhook Targets) |
E-DI-3011 | The endpoint domain has not been verified (Webhook Targets) |
E-DI-3020 | Unknown error (AWS SQS Targets) |
E-DI-3021 | Insufficient role permissions (AWS SQS Targets) |
E-DI-3022 | The target queue does not exist (AWS SQS Targets) |
E-DI-3023 | Unable to assume the configured role (AWS SQS Targets) |
E-DI-3030 | Unknown error (AWS SNS Targets) |
E-DI-3031 | Insufficient role permissions (AWS SNS Targets) |
E-DI-3032 | The target topic does not exist (AWS SNS Targets) |
E-DI-3033 | Unable to assume the configured role (AWS SNS Targets) |
E-DI-3034 | Unable to parse AWS region from Topic ARN (AWS SNS Targets) |
dispatch.all.readwritedispatch.targets.readwrite
Disable a Target. You can read more about enabling and disabling Targets in Configuration.
targetId | string | A Target ID Example: |
reason | Optional | string | The reason the Target is being disabled. |
200 | application/json | The Target target was disabled successfully |
Example response body{ "id": "DI-T-3f409cb5d8", "name": "User Onboarding App", "description": "", "tags": [ "env:prod", "team:ninjas" ], "type": "WEBHOOK", "enabled": false, "createdTime": "2019-11-29T19:27:45.449Z", "lastChangedTime": "2020-04-03T10:21:31.521Z", "disabledReason": "Disabled for temporary debugging", "httpEndpoint": "https://messages.example.com" } | ||
<< | No Content |
E-DI-3001 | Target not found |
E-DI-3004 | Cannot disable an already disabled target |
A paged list of items. Use the nextPageToken
in follow-up requests to step through all available items. nextPageToken
will be null
on the last page.
items | array | A list of items | |
count | integer | The number of items in the list | |
pageToken | string | The token for the current page | |
nextPageToken | string | NULL | The token for the next page |
A target
id | string | The Target ID | |
name | string | The name of the Target | |
description | string | A description of the Target | |
tags | array | An array of | |
type | string WEBHOOK AWS_SQS AWS_SNS | The type of Target | |
enabled | boolean | Specifies if the Target is enabled or not | |
disabledReason | string | NULL | An optional user-provided reason why the Target has been disabled | |
createdTime | string ISO-8601 Date & Time | The time of the Target was first created | |
lastChangedTime | string ISO-8601 Date & Time | The time the Target was last changed | |
httpEndpoint | string URL | The HTTP endpoint messages will be delivered to For | |
awsRegion | string | The region the AWS resource is located in For | |
roleArn | string AWS ARN | The AWS IAM role that Dispatch will assume in order to deliver messages For | |
queueUrl | string URL | The URL of the AWS SQS queue messages will be delivered to For | |
topicArn | string AWS ARN | The ARN of the AWS SNS topic messages will be delivered to For |
An error object
code | string | The error code | |
message | string | A descriptive error message |
If you have any questions you can't find the answer for, please don't hesitate to contact us.