Rejection reasons

Get reasons

GET/v2/rejection_reasons
Query parameters
Header parameters
Response

Success

Body
Idinteger (int32)
Name*string
TypeTalentLyft.Data.Enumerators.RejectionReasonTypes (enum)
NoneSpecifiedTheyRejectedUsWeRejectedThem
Actionsnullable array of Adopto.Common.Api.Dto.AutomatedAction (object)
Request
const response = await fetch('/v2/rejection_reasons', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "Name": "text",
    "Type": "NoneSpecified",
    "Actions": [
      {
        "Type": "SendEmail"
      }
    ]
  }
]

Create reason

POST/v2/rejection_reasons
Header parameters
Body
Idinteger (int32)
Name*string
TypeTalentLyft.Data.Enumerators.RejectionReasonTypes (enum)
NoneSpecifiedTheyRejectedUsWeRejectedThem
Actionsnullable array of Adopto.Common.Api.Dto.AutomatedAction (object)
Response

Created

Body
Idinteger (int32)
Name*string
TypeTalentLyft.Data.Enumerators.RejectionReasonTypes (enum)
NoneSpecifiedTheyRejectedUsWeRejectedThem
Actionsnullable array of Adopto.Common.Api.Dto.AutomatedAction (object)
Request
const response = await fetch('/v2/rejection_reasons', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "Name": "text"
    }),
});
const data = await response.json();
Response
{
  "Name": "text",
  "Type": "NoneSpecified",
  "Actions": [
    {
      "Type": "SendEmail"
    }
  ]
}

Get reason

GET/v2/rejection_reasons/{id}
Path parameters
id*integer (int32)
Header parameters
Response

Success

Body
Idinteger (int32)
Name*string
TypeTalentLyft.Data.Enumerators.RejectionReasonTypes (enum)
NoneSpecifiedTheyRejectedUsWeRejectedThem
Actionsnullable array of Adopto.Common.Api.Dto.AutomatedAction (object)
Request
const response = await fetch('/v2/rejection_reasons/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "Name": "text",
  "Type": "NoneSpecified",
  "Actions": [
    {
      "Type": "SendEmail"
    }
  ]
}

Update reason

PUT/v2/rejection_reasons/{id}
Path parameters
id*integer (int32)
Header parameters
Body
Idinteger (int32)
Name*string
TypeTalentLyft.Data.Enumerators.RejectionReasonTypes (enum)
NoneSpecifiedTheyRejectedUsWeRejectedThem
Actionsnullable array of Adopto.Common.Api.Dto.AutomatedAction (object)
Response

No Content

Request
const response = await fetch('/v2/rejection_reasons/{id}', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "Name": "text"
    }),
});
const data = await response.json();

Delete reason

DELETE/v2/rejection_reasons/{id}
Path parameters
id*integer (int32)
Query parameters
Header parameters
Response

No Content

Request
const response = await fetch('/v2/rejection_reasons/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();