Provides API endpoints related to answers
Summary
Functions
@spec createanswer(body :: Gleanex.Client.CreateAnswerRequest.t(), opts :: keyword()) :: {:ok, Gleanex.Client.Answer.t()} | {:error, Gleanex.Error.t()}
Create Answer
Create a user-generated Answer that contains a question and answer.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
CreateAnswer request
@spec deleteanswer(body :: Gleanex.Client.DeleteAnswerRequest.t(), opts :: keyword()) :: :ok | {:error, Gleanex.Error.t()}
Delete Answer
Delete an existing user-generated Answer.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
DeleteAnswer request
@spec editanswer(body :: Gleanex.Client.EditAnswerRequest.t(), opts :: keyword()) :: {:ok, Gleanex.Client.Answer.t()} | {:error, Gleanex.Error.t()}
Update Answer
Update an existing user-generated Answer.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
EditAnswer request
@spec getanswer(body :: Gleanex.Client.GetAnswerRequest.t(), opts :: keyword()) :: {:ok, Gleanex.Client.GetAnswerResponse.t()} | {:error, Gleanex.Error.t()}
Read Answer
Read the details of a particular Answer given its ID.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
GetAnswer request
@spec listanswers(body :: Gleanex.Client.ListAnswersRequest.t(), opts :: keyword()) :: {:ok, Gleanex.Client.ListAnswersResponse.t()} | {:error, Gleanex.Error.t()}
List Answers
List Answers created by the current user.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
ListAnswers request