-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUser_v4_create.dtd
128 lines (128 loc) · 3.84 KB
/
User_v4_create.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/User_v4_create.dtd",
"title": "User (v4) create",
"type": "object",
"description": "For new user creation. url: https://route4me.com/api.v4/user.php",
"required": [
"api_key",
"member_type",
"member_email",
"OWNER_MEMBER_ID",
"member_password"
],
"properties": {
"api_key": {
"type": "string",
"title": "API key",
"description": "API key of an user. HTTP method - GET"
},
"HIDE_ROUTED_ADDRESSES": {
"type": "string",
"title": "Hide Routed Addresses",
"description": "Hide routed sddresses, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"member_phone": {
"type": "string",
"title": "Member Phone",
"description": "A phone number of the user. HTTP method - POST."
},
"member_zipcode": {
"type": "string",
"title": "Zip code",
"pattern": "^[0-9]{5,7}$",
"description": "The 5-7 digit ZIP code (minimum length of 5)). HTTP method - POST."
},
"route_count": {
"type": "string",
"title": "Route count",
"description": "Route count. HTTP method - POST."
},
"member_email": {
"type": "string",
"title": "Member Email",
"format": "email",
"description": "E-mail address of the user that was used for site registration. HTTP method - POST."
},
"HIDE_VISITED_ADDRESSES": {
"type": "string",
"title": "Hide Visited Addresses",
"description": "Hide visited sddresses, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"READONLY_USER": {
"type": "string",
"title": "Readonly User",
"description": "Readonly user, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"OWNER_MEMBER_ID": {
"type": "string",
"title": "Owner Member ID",
"description": "Parent user ID."
},
"member_type": {
"type": "string",
"title": "Member Type",
"description": "Member type, ENUM [PRIMARY_ACCOUNT, SUB_ACCOUNT_ADMIN, SUB_ACCOUNT_REGIONAL_MANAGER, SUB_ACCOUNT_DISPATCHER, SUB_ACCOUNT_PLANNER, SUB_ACCOUNT_DRIVER]. HTTP method - POST."
},
"date_of_birth": {
"type": "string",
"title": "Date of Birth",
"description": "Date of birth. HTTP method - POST."
},
"member_first_name": {
"type": "string",
"title": "Member First Name",
"description": "The first name of the user. HTTP method - POST."
},
"member_password": {
"type": "string",
"title": "Member Password",
"description": "Member Password. HTTP method - POST."
},
"HIDE_NONFUTURE_ROUTES": {
"type": "string",
"title": "Hide Nonfuture Routes",
"description": "Hide non-future routes, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"member_last_name": {
"type": "string",
"title": "Member Last Name",
"description": "The last name of the user. HTTP method - POST."
},
"SHOW_ALL_VEHICLES": {
"type": "string",
"title": "Show All Vehicles",
"description": "Show all vehicles, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"SHOW_ALL_DRIVERS": {
"type": "string",
"title": "Show All Drivers",
"description": "Show all drivers, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"SHOW_SUSR_ADDR": {
"type": "string",
"title": "Show Global Addresses",
"description": "Show global address book contacts in a user's account, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"SHOW_SUSR_ORDERS": {
"type": "string",
"title": "Show Global Orders",
"description": "Show global orders in a user's account, ENUM['TRUE', 'FALSE']. HTTP method - POST."
},
"custom_data": {
"type": "string",
"title": "Custom data",
"description": "User's custom data (JSON string) - POST."
},
"level": {
"type": "integer",
"title": "Level",
"description": "Subordination level. 0 is the highest level."
},
"is_active": {
"type": "integer",
"title": "Is Active",
"description": "If equal to 1, the user account is active."
}
}
}