Create user
Create a new user account and automatically link it to your service. Users created through this endpoint are managed by your service.
Path Parameters
External service ID (UUID).
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response
200Error Responses
invalid_schema
Request validation failed.
missing_api_token
No authentication token provided.
invalid_api_token
Invalid or expired authentication token.
scope_permission_denied
Insufficient permissions for this operation.
external_service_access_denied
Token does not match the requested external service.
email_already_in_use
The submitted email is already linked to a different user.
external_user_id_already_in_use
The submitted external user ID is already linked to a different user.
internal_server_error
Unexpected server error.
curl -X POST "https://dev.wingfield.systems/api/v1/external-services/497f6eca-6276-4993-bfeb-53cbbbba6f08/users" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "externalUserId": "string", "firstName": "string", "lastName": "string", "birthday": "2019-08-24" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"firstName": "string",
"lastName": "string",
"birthday": "2019-08-24T14:15:22Z",
"gender": "MALE",
"mainSportType": "TENNIS",
"playingHand": "LEFT"
}{
"error": {
"type": "invalid_schema",
"message": "string",
"issues": [
{}
]
}
}{
"error": {
"type": "missing_api_token",
"message": "string"
}
}{
"error": {
"type": "scope_permission_denied",
"message": "string"
}
}{
"error": {
"type": "email_already_in_use",
"message": "string"
}
}{
"error": {
"type": "internal_server_error",
"message": "string"
}
}