PUT api/v1/bots/sparkbots/{id}/Authenticate

Re-authenticate spark bot. This is needed after the spark access token expires.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

AuthenticateDto
NameDescriptionTypeAdditional information
UserName

Spark.io username

string

Required

Password

Spark.io password

string

Required

Request Formats

application/json, text/json, application/senml+json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<AuthenticateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots.SparkBot">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</AuthenticateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, application/senml+json

Sample:

Sample not available.