Create
POST/orgs/:org_guid/employees
Create
Request
Path Parameters
Query Parameters
Possible values: [compact
, full
]
Header Parameters
Идентификатор клиента
Possible values: [Unknown
, App
, WebApp
, Service
]
Тип клиента
Имя клиента
ОС клиента
Версия ОС клиента
Разрешение экрана ОС клиента
Модель оборудования клиента
Организация по умолчанию
Поддерживаемые клиентом расширения моделей
Язык используемый для ответов
- application/json-patch+json
- application/json
- text/json
- application/*+json
Body
Possible values: >= 5 characters
and <= 64 characters
name
Possible values: >= 2 characters
and <= 24 characters
username
Possible values: >= 10 characters
and <= 18 characters
, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
phone
role
object
required
guid
type_of
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^\d+$
inn
Possible values: >= 32 characters
and <= 32 characters
pin_code_hash
organization
object
guid
type_of
Possible values: >= 6 characters
and <= 64 characters
created_at
updated_at
deleted_at
Possible values: <= 128 characters
meta
meta_data
object
nullable
meta_data
guid
type_of
Body
Possible values: >= 5 characters
and <= 64 characters
name
Possible values: >= 2 characters
and <= 24 characters
username
Possible values: >= 10 characters
and <= 18 characters
, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
phone
role
object
required
guid
type_of
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^\d+$
inn
Possible values: >= 32 characters
and <= 32 characters
pin_code_hash
organization
object
guid
type_of
Possible values: >= 6 characters
and <= 64 characters
created_at
updated_at
deleted_at
Possible values: <= 128 characters
meta
meta_data
object
nullable
meta_data
guid
type_of
Body
Possible values: >= 5 characters
and <= 64 characters
name
Possible values: >= 2 characters
and <= 24 characters
username
Possible values: >= 10 characters
and <= 18 characters
, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
phone
role
object
required
guid
type_of
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^\d+$
inn
Possible values: >= 32 characters
and <= 32 characters
pin_code_hash
organization
object
guid
type_of
Possible values: >= 6 characters
and <= 64 characters
created_at
updated_at
deleted_at
Possible values: <= 128 characters
meta
meta_data
object
nullable
meta_data
guid
type_of
Body
Possible values: >= 5 characters
and <= 64 characters
name
Possible values: >= 2 characters
and <= 24 characters
username
Possible values: >= 10 characters
and <= 18 characters
, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
phone
role
object
required
guid
type_of
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^\d+$
inn
Possible values: >= 32 characters
and <= 32 characters
pin_code_hash
organization
object
guid
type_of
Possible values: >= 6 characters
and <= 64 characters
created_at
updated_at
deleted_at
Possible values: <= 128 characters
meta
meta_data
object
nullable
meta_data
guid
type_of
Responses
- 201
- 401
- 403
- 404
- 422
- 429
- 500
Created
- application/json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 5 characters
and <= 64 characters
name
Possible values: >= 2 characters
and <= 24 characters
username
Possible values: >= 10 characters
and <= 18 characters
, Value must match regular expression ((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
phone
role
object
required
guid
type_of
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^\d+$
inn
Possible values: >= 32 characters
and <= 32 characters
pin_code_hash
organization
object
guid
type_of
Possible values: >= 6 characters
and <= 64 characters
created_at
updated_at
deleted_at
Possible values: <= 128 characters
meta
meta_data
object
nullable
meta_data
guid
type_of
{
"name": "string",
"username": "string",
"phone": "string",
"role": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"inn": "string",
"pin_code_hash": "string",
"organization": {
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
},
"email": "user@example.com",
"created_at": "2024-10-23T06:47:41.200Z",
"updated_at": "2024-10-23T06:47:41.200Z",
"deleted_at": "2024-10-23T06:47:41.200Z",
"meta": "string",
"meta_data": {},
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type_of": "string"
}
{
"name": "Василий Пупкин",
"username": "vasya_pupkin",
"phone": "79991112233",
"role": {
"role_type": "BuiltIn",
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"guid": "00000000-0000-0000-0000-000000000000",
"type_of": "Role"
},
"email": "vasya@pupkin.vru",
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"guid": "1a0935ca-c92d-4103-894f-7b8730fc3e01",
"type_of": "Employee"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Client Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InternalServerError
, TooManyRequests
, RequestIsNotValid
, BadRequest
, NoPermissions
, Unauthorized
, NotFound
, ReferenceNotFound
, Duplicate
, NotUnique
, NotNullOrUnique
, NotAllowed
, NotAllowedForArchived
, TryLater
, OperationCannotBePerformed
, NotificationsAreOutOfService
, TrySendCodeLater
, UsernameIsAlreadyTaken
, PhoneIsNotFound
, PhoneIsNotFoundInOrganization
, PhoneIsAlreadyTaken
, InvalidConfirmationCode
, ConfirmationCodeWasCanceled
, ConfirmationCodeWasNotSend
, UsernameDoesNotExist
, WrongUsernameOrPassword
, WrongActivationCode
, TryActivateLater
, AliasIsNotFound
, AliasIsAlreadyTaken
, NotAllowedForOwner
, DealPositionHasInvalidQuantity
, CheckMarkingCodeMustBeDisabled
, LegalEntityCrptTokenNotSpecified
]
message
info
{
"code": "InternalServerError",
"message": "string",
"info": "string"
}