- Home
- API Enriched
- Support
- web
- Validate Ticket Tracking System.
Validate Ticket Tracking System.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/namespaces/shared/ticket_tracking_systems/validate_ticket_tracking_system';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"jira_config":{"adhoc_rest_api":{"account_email":"example","api_token":"example","organization_domain":"example"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/web/namespaces/shared/ticket_tracking_systems/validate_ticket_tracking_system \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "jira_config": { "adhoc_rest_api": { "account_email": "example", "api_token": "example", "organization_domain": "example" } } }'Validate input for the ticket tracking system like the credentials + organization.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request message when validating a Ticket Tracking System’s credentials / organization through the custom API.
object
object
object
Username (email) for the Atlassian account
Required: YES.
API Token (password) specified by the customer in plaintext to be used for Basic Auth. This value is purely used for user input and is not persisted in the database. It will be converted to a blindfolded and encrypted form before saving. For editing/replacing the existing JIRA configuration, and to use the already stored value of the encrypted API Token, this field should be sent as an empty string. Since this field is confidential, the GET/List public APIs will return this value as an empty string.
Required: YES.
A valid hostname for the Atlassian organization, as defined by RFC 1034 Required: YES.
Examplegenerated
{ "jira_config": { "adhoc_rest_api": { "account_email": "example", "api_token": "example", "organization_domain": "example" } }}Responses
Section titled “Responses”A successful response.
Response message when validating a Ticket Tracking System’s credentials / organization through the custom API Empty errors means the validation succeeded.
object
Errors related to ticket tracking system creation - such as issues with validation of credentials + organization domain.
Information about a error in API operation.
object
object
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one ”/” character. The last segment of the URL’s path must represent
the fully qualified name of the type (as in
path/google.protobuf.duration). The name should be in a canonical form
(e.g., leading ”.” is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme HTTP, HTTPS, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
- If no scheme is provided,
HTTPSis assumed. - An HTTP GET on the URL must yield a [google.protobuf.type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com.
Schemes other than HTTP, HTTPS (or the empty scheme) might be
used with implementation specific semantics.
Must be a valid serialized protocol buffer of the above specified type.
A human readable string of the error.
Example
{ "errors": [ { "code": "EOK" } ]}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example