Falken
Home
Falken
  • Website
  • News
Home
Falken
  • Website
  • News
  1. UserAddress
  • Athlete
    • /api/Athlete/Create
      POST
  • Auth
    • /api/Auth/login
      POST
    • /api/Auth/refresh-token
      POST
    • /api/Auth/logout
      POST
    • /api/Auth/me
      GET
  • Organization
    • /api/organization/classyears/add
      POST
    • /api/organization/classyears/update/{id}
      PUT
    • /api/organization/classyears/delete/{id}
      DELETE
    • /api/organization/classyears/{id}
      GET
    • /api/organization/{organizationId}/classyears/all
      GET
    • /api/organization/{organizationId}/athletes
      GET
  • User
    • /api/User/organizations
      GET
  • UserAddress
    • /api/UserAddress/all
      GET
    • /api/UserAddress/id/{id}
      GET
    • /api/UserAddress/Add
      POST
    • /api/UserAddress/update/{id}
      PUT
    • /api/UserAddress/delete/{id}
      DELETE
  1. UserAddress

/api/UserAddress/Add

POST
https://www.falken.ltd/api/UserAddress/Add

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
id
string <uuid>
optional
street
string 
required
>= 1 characters<= 200 characters
city
string 
required
>= 1 characters<= 100 characters
state
enum<integer> <int32>
required
Allowed values:
01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
postalCode
string 
required
>= 1 characters<= 20 characters
country
enum<integer> <int32>
required
Allowed values:
0123456789101112131415161718192021222324
addressType
enum<integer> <int32>
required
Allowed values:
0123
protectionStatus
enum<integer> <int32>
required
Allowed values:
012
notes
string  | null 
optional
<= 500 characters
userId
string 
required
>= 1 characters
applicationUser
object (ApplicationUser) 
optional
id
string  | null 
optional
userName
string  | null 
optional
normalizedUserName
string  | null 
optional
email
string  | null 
optional
normalizedEmail
string  | null 
optional
emailConfirmed
boolean 
optional
passwordHash
string  | null 
optional
securityStamp
string  | null 
optional
concurrencyStamp
string  | null 
optional
phoneNumber
string  | null 
optional
phoneNumberConfirmed
boolean 
optional
twoFactorEnabled
boolean 
optional
lockoutEnd
string <date-time> | null 
optional
lockoutEnabled
boolean 
optional
accessFailedCount
integer <int32>
optional
firstName
string  | null 
optional
lastName
string  | null 
optional
picture
string  | null 
optional
organizationUserRoles
array[object (OrganizationUserRole) {7}]  | null 
optional
refreshTokens
array[object (RefreshToken) {9}]  | null 
optional
addresses
array[object (Address) {9}]  | null 
optional
Example
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "street": "string",
    "city": "string",
    "state": 0,
    "postalCode": "string",
    "country": 0,
    "addressType": 0,
    "protectionStatus": 0,
    "notes": "string",
    "userId": "string",
    "applicationUser": {
        "id": "string",
        "userName": "string",
        "normalizedUserName": "string",
        "email": "string",
        "normalizedEmail": "string",
        "emailConfirmed": true,
        "passwordHash": "string",
        "securityStamp": "string",
        "concurrencyStamp": "string",
        "phoneNumber": "string",
        "phoneNumberConfirmed": true,
        "twoFactorEnabled": true,
        "lockoutEnd": "2019-08-24T14:15:22Z",
        "lockoutEnabled": true,
        "accessFailedCount": 0,
        "firstName": "string",
        "lastName": "string",
        "picture": "string",
        "organizationUserRoles": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "role": 0,
                "status": 0,
                "accessStartDate": "2019-08-24T14:15:22Z",
                "accessEndDate": "2019-08-24T14:15:22Z",
                "user": {},
                "organization": {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "name": "string",
                    "mascot": "string",
                    "pocFirstName": "string",
                    "pocLastName": "string",
                    "pocEmail": "user@example.com",
                    "pocPhone": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "city": "string",
                    "state": "string",
                    "postalCode": "string",
                    "country": "string",
                    "latitude": 0,
                    "longitude": 0,
                    "status": 0,
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "slug": "string",
                    "logoUrl": "string",
                    "friendlyUrl": "string",
                    "organizationUserRoles": [
                        {}
                    ],
                    "athleteOrganizations": [
                        {
                            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                            "athleteId": "69552696-5b24-4200-805d-78e46a91f565",
                            "athlete": {
                                "athleteId": "69552696-5b24-4200-805d-78e46a91f565",
                                "firstName": "string",
                                "middleName": "string",
                                "lastName": "string",
                                "dateOfBirth": "2019-08-24T14:15:22Z",
                                "email": "string",
                                "picture": "string",
                                "nickname": "string",
                                "gender": 0,
                                "cmpNumber": "string",
                                "athleteStatus": 0,
                                "athleteOrganizations": [
                                    {}
                                ],
                                "createdDate": "2019-08-24T14:15:22Z",
                                "lastUpdatedDate": "2019-08-24T14:15:22Z"
                            },
                            "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
                            "organization": {},
                            "classYearId": "528f72f7-db0e-42dc-b232-35138f585f64",
                            "classYear": {
                                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                                "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
                                "graduationDate": "2019-08-24T14:15:22Z",
                                "startDate": "2019-08-24T14:15:22Z",
                                "endDate": "2019-08-24T14:15:22Z",
                                "notes": "string",
                                "createdDate": "2019-08-24T14:15:22Z",
                                "lastUpdatedDate": "2019-08-24T14:15:22Z"
                            },
                            "startDate": "2019-08-24T14:15:22Z",
                            "endDate": "2019-08-24T14:15:22Z",
                            "createdDate": "2019-08-24T14:15:22Z",
                            "lastUpdatedDate": "2019-08-24T14:15:22Z"
                        }
                    ]
                }
            }
        ],
        "refreshTokens": [
            {
                "id": 0,
                "token": "string",
                "userId": "string",
                "user": {},
                "expires": "2019-08-24T14:15:22Z",
                "isRevoked": true,
                "created": "2019-08-24T14:15:22Z",
                "revoked": "2019-08-24T14:15:22Z",
                "deviceId": "string"
            }
        ],
        "addresses": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "street": "string",
                "city": "string",
                "state": 0,
                "postalCode": "string",
                "country": 0,
                "addressType": 0,
                "protectionStatus": 0,
                "notes": "string"
            }
        ]
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.falken.ltd/api/UserAddress/Add' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "street": "string",
    "city": "string",
    "state": 0,
    "postalCode": "string",
    "country": 0,
    "addressType": 0,
    "protectionStatus": 0,
    "notes": "string",
    "userId": "string",
    "applicationUser": {
        "id": "string",
        "userName": "string",
        "normalizedUserName": "string",
        "email": "string",
        "normalizedEmail": "string",
        "emailConfirmed": true,
        "passwordHash": "string",
        "securityStamp": "string",
        "concurrencyStamp": "string",
        "phoneNumber": "string",
        "phoneNumberConfirmed": true,
        "twoFactorEnabled": true,
        "lockoutEnd": "2019-08-24T14:15:22Z",
        "lockoutEnabled": true,
        "accessFailedCount": 0,
        "firstName": "string",
        "lastName": "string",
        "picture": "string",
        "organizationUserRoles": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "role": 0,
                "status": 0,
                "accessStartDate": "2019-08-24T14:15:22Z",
                "accessEndDate": "2019-08-24T14:15:22Z",
                "user": {},
                "organization": {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "name": "string",
                    "mascot": "string",
                    "pocFirstName": "string",
                    "pocLastName": "string",
                    "pocEmail": "user@example.com",
                    "pocPhone": "string",
                    "addressLine1": "string",
                    "addressLine2": "string",
                    "city": "string",
                    "state": "string",
                    "postalCode": "string",
                    "country": "string",
                    "latitude": 0,
                    "longitude": 0,
                    "status": 0,
                    "createdAt": "2019-08-24T14:15:22Z",
                    "updatedAt": "2019-08-24T14:15:22Z",
                    "slug": "string",
                    "logoUrl": "string",
                    "friendlyUrl": "string",
                    "organizationUserRoles": [
                        {}
                    ],
                    "athleteOrganizations": [
                        {
                            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                            "athleteId": "69552696-5b24-4200-805d-78e46a91f565",
                            "athlete": {
                                "athleteId": "69552696-5b24-4200-805d-78e46a91f565",
                                "firstName": "string",
                                "middleName": "string",
                                "lastName": "string",
                                "dateOfBirth": "2019-08-24T14:15:22Z",
                                "email": "string",
                                "picture": "string",
                                "nickname": "string",
                                "gender": 0,
                                "cmpNumber": "string",
                                "athleteStatus": 0,
                                "athleteOrganizations": [
                                    {}
                                ],
                                "createdDate": "2019-08-24T14:15:22Z",
                                "lastUpdatedDate": "2019-08-24T14:15:22Z"
                            },
                            "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
                            "organization": {},
                            "classYearId": "528f72f7-db0e-42dc-b232-35138f585f64",
                            "classYear": {
                                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                                "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
                                "graduationDate": "2019-08-24T14:15:22Z",
                                "startDate": "2019-08-24T14:15:22Z",
                                "endDate": "2019-08-24T14:15:22Z",
                                "notes": "string",
                                "createdDate": "2019-08-24T14:15:22Z",
                                "lastUpdatedDate": "2019-08-24T14:15:22Z"
                            },
                            "startDate": "2019-08-24T14:15:22Z",
                            "endDate": "2019-08-24T14:15:22Z",
                            "createdDate": "2019-08-24T14:15:22Z",
                            "lastUpdatedDate": "2019-08-24T14:15:22Z"
                        }
                    ]
                }
            }
        ],
        "refreshTokens": [
            {
                "id": 0,
                "token": "string",
                "userId": "string",
                "user": {},
                "expires": "2019-08-24T14:15:22Z",
                "isRevoked": true,
                "created": "2019-08-24T14:15:22Z",
                "revoked": "2019-08-24T14:15:22Z",
                "deviceId": "string"
            }
        ],
        "addresses": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "street": "string",
                "city": "string",
                "state": 0,
                "postalCode": "string",
                "country": 0,
                "addressType": 0,
                "protectionStatus": 0,
                "notes": "string"
            }
        ]
    }
}'

Responses

🟢201Created
text/plain
Created
Body
id
string <uuid>
optional
street
string  | null 
optional
city
string  | null 
optional
state
string  | null 
optional
postalCode
string  | null 
optional
country
string  | null 
optional
addressType
string  | null 
optional
protectionStatus
string  | null 
optional
notes
string  | null 
optional
Example
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "street": "string",
    "city": "string",
    "state": "string",
    "postalCode": "string",
    "country": "string",
    "addressType": "string",
    "protectionStatus": "string",
    "notes": "string"
}
🟠401Unauthorized
Modified at 2024-09-11 15:37:46
Previous
/api/UserAddress/id/{id}
Next
/api/UserAddress/update/{id}
Built with