POST api/v2/Users/Signup

Request Information

URI Parameters

None.

Body Parameters

InputSignUp
NameDescriptionTypeAdditional information
UserID

integer

None.

TagNumber

string

Required

Max length: 200

UserType

EUserType

Required

PhoneNumber

string

None.

FullName

string

Required

Max length: 200

Email

string

Required

Max length: 100

Password

string

Required

Matching regular expression pattern: ^.{6,}$

Max length: 50

State

string

Required

Max length: 50

DeviceType

EDeviceType

Required

DeviceToken

string

Max length: 200

DeviceLat

decimal number

None.

DeviceLong

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "TagNumber": "sample string 1",
  "UserType": 0,
  "PhoneNumber": "sample string 2",
  "FullName": "sample string 3",
  "Email": "sample string 4",
  "Password": "sample string 5",
  "State": "sample string 6",
  "DeviceType": 0,
  "DeviceToken": "sample string 7",
  "DeviceLat": 1.0,
  "DeviceLong": 1.0
}

application/xml, text/xml

Sample:
<InputSignUp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TruckSpot.Models.API.Input">
  <DeviceLat>1</DeviceLat>
  <DeviceLong>1</DeviceLong>
  <DeviceToken>sample string 7</DeviceToken>
  <DeviceType>IOS</DeviceType>
  <Email>sample string 4</Email>
  <FullName>sample string 3</FullName>
  <Password>sample string 5</Password>
  <PhoneNumber>sample string 2</PhoneNumber>
  <State>sample string 6</State>
  <TagNumber>sample string 1</TagNumber>
  <UserID>1</UserID>
  <UserType>Admin</UserType>
</InputSignUp>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.