For the complete documentation index, see llms.txt. This page is also available as Markdown.

SMTP

This contains APIs related to SmtpConfig as defined in Harness

Delete Smtp Config by identifier

delete
Path parameters
identifierstringRequired

Config identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/smtpConfig/{identifier}
DELETE /gateway/ng/api/smtpConfig/{identifier}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Gets Smtp config by accountId

get
Query parameters
accountIdstringOptional

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/smtpConfig
GET /gateway/ng/api/smtpConfig HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Creates SMTP config

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the view of the NgSmtp entity defined in Harness

uuidstringOptional

Identifier of the SMTP config.

accountIdstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

namestringRequired

Name of the SMTP config.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/smtpConfig
POST /gateway/ng/api/smtpConfig?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 199

{
  "uuid": "text",
  "accountId": "text",
  "name": "text",
  "value": {
    "host": "text",
    "port": 1,
    "fromAddress": "text",
    "useSSL": true,
    "startTLS": true,
    "username": "text",
    "password": [
      "text"
    ],
    "delegateSelectors": [
      "text"
    ]
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Updates the Smtp Config

put
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

Body

This is the view of the NgSmtp entity defined in Harness

uuidstringOptional

Identifier of the SMTP config.

accountIdstring · min: 1 · max: 2147483647Required

Account Identifier for the Entity.

namestringRequired

Name of the SMTP config.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/smtpConfig
PUT /gateway/ng/api/smtpConfig?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 199

{
  "uuid": "text",
  "accountId": "text",
  "name": "text",
  "value": {
    "host": "text",
    "port": 1,
    "fromAddress": "text",
    "useSSL": true,
    "startTLS": true,
    "username": "text",
    "password": [
      "text"
    ],
    "delegateSelectors": [
      "text"
    ]
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Tests the config's connectivity by sending a test email

post
Query parameters
identifierstringRequired

Attribute uuid

accountIdstringRequired

Account Identifier for the Entity.

tostringRequired
subjectstringRequired
bodystringRequired
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/smtpConfig/validate-connectivity
POST /gateway/ng/api/smtpConfig/validate-connectivity?identifier=text&accountId=text&to=text&subject=text&body=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Checks whether other connectors exist with the same name

post
Query parameters
namestringOptional

The name of Config

accountIdstringRequired

Account Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/smtpConfig/validateName
POST /gateway/ng/api/smtpConfig/validateName?accountId=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?