ClubReady Api

<back to all web services

PasswordResetRequest

The following routes are available for this service:
POST/users/passwordresetSend password reset email to a user.
import java.math.*
import java.util.*
import net.servicestack.client.*


open class PasswordResetRequest : PasswordResetRequestDto(), IRestrictedApiRequest
{
    /**
    * Api Key - grants access to resources
    */
    @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query")
    var ApiKey:String? = null

    /**
    * ClubReady Club ID (StoreID internally)
    */
    @ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", Name="StoreId", ParameterType="query")
    var StoreId:Int? = null

    /**
    * StoreId OR ChainId is required
    */
    @ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="ChainId", ParameterType="query")
    var ChainId:Int? = null

    /**
    * ClubReady username
    */
    @ApiMember(DataType="string", Description="ClubReady username", Name="UserName", ParameterType="query")
    var Username:String? = null

    /**
    * User's email address.
    */
    @ApiMember(DataType="string", Description="User's email address.", Name="Email", ParameterType="query")
    var Email:String? = null

    /**
    * 0 = All, 1 = Prospects, 2 = Active, 3 = Inactive, 4 = All Members, 5 = Past Due
    */
    @ApiMember(DataType="integer", Description="0 = All, 1 = Prospects, 2 = Active, 3 = Inactive, 4 = All Members, 5 = Past Due", Name="Filter", ParameterType="query")
    var Filter:Int? = null

    var RestrictedId:Int? = null
    var RestrictedResourceType:RestrictedResourceType? = null
}

open class PasswordResetRequestDto : ApiDtoBase()
{
    var Email:String? = null
    var Username:String? = null
    var Filter:Int? = null
}

open class ApiDtoBase
{
    var ChainId:Int? = null
    var ApiKey:String? = null
    var StoreId:Int? = null
}

enum class RestrictedResourceType
{
    Store,
    Chain,
    User,
    Undefined,
}

open class PasswordResetResponse : PasswordResetResponseDto()
{
    var Success:Boolean? = null
    var Message:String? = null
}

open class PasswordResetResponseDto : ApiResponseBase()
{
}

open class ApiResponseBase
{
    var Success:Boolean? = null
    var Message:String? = null
}

Kotlin PasswordResetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /users/passwordreset HTTP/1.1 
Host: www.clubready.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ApiKey":"String","StoreId":0,"ChainId":0,"Username":"String","Email":"String","Filter":0,"RestrictedId":0,"RestrictedResourceType":"Chain"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Success":false,"Message":"String"}