PUT api/v1/bots/sparkbots/{id}/Authenticate
Re-authenticate spark bot. This is needed after the spark access token expires.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
AuthenticateDtoName | Description | Type | Additional information |
---|---|---|---|
UserName |
Spark.io username |
string |
None. |
Password |
Spark.io password |
string |
None. |
ParticleToken |
Supply either username + password, or token (generated by Particle.io) |
string |
None. |
Request Formats
application/json, text/json, application/senml+json
Sample:
{ "UserName": "sample string 1", "Password": "sample string 2", "ParticleToken": "sample string 3" }
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"> <ParticleToken>sample string 3</ParticleToken> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </AuthenticateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, application/senml+json
Sample:
Sample not available.