697 lines
29 KiB
YAML
697 lines
29 KiB
YAML
ValidationFailed:
|
|
description: >-
|
|
Parameters, headers, or the body do not match the contract, or the body
|
|
violates a domain rule such as salary_from <= salary_to. The body has code
|
|
validation_failed and lists the failing fields in `errors` with body or
|
|
parameter pointers.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
validation_failed:
|
|
$ref: ./examples.yml#/ValidationFailed
|
|
domain_rule:
|
|
$ref: ./examples.yml#/DomainValidationFailed
|
|
Unauthenticated:
|
|
description: No valid session or credentials; code unauthenticated.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
unauthenticated:
|
|
$ref: ./examples.yml#/Unauthenticated
|
|
Forbidden:
|
|
description: >-
|
|
The caller is authenticated but may not perform the operation; code
|
|
forbidden.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
forbidden:
|
|
$ref: ./examples.yml#/Forbidden
|
|
NotFound:
|
|
description: >-
|
|
The object does not exist or is not visible to the caller; code
|
|
not_found. Missing and inaccessible objects are not distinguished.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
not_found:
|
|
$ref: ./examples.yml#/NotFound
|
|
IdempotencyInProgress:
|
|
description: >-
|
|
A request with the same Idempotency-Key and the same fingerprint is still
|
|
being processed; code idempotency_in_progress. Retry after the original
|
|
request completes.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
StateConflict:
|
|
description: >-
|
|
The operation conflicts with the current state of the resource, for
|
|
example a transition that is not allowed from its current status; code
|
|
state_conflict.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/StateConflict
|
|
PreconditionFailed:
|
|
description: >-
|
|
If-Match does not match the current resource version; code
|
|
version_conflict. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/VersionConflict
|
|
PayloadTooLarge:
|
|
description: The request body exceeds the operation limit; code payload_too_large.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
payload_too_large:
|
|
$ref: ./examples.yml#/PayloadTooLarge
|
|
UnprocessableContent:
|
|
description: >-
|
|
The Idempotency-Key was already used with a different request within 24
|
|
hours; code idempotency_key_reused. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
idempotency_key_reused:
|
|
$ref: ./examples.yml#/IdempotencyKeyReused
|
|
PreconditionRequired:
|
|
description: The operation requires If-Match; code precondition_required.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
precondition_required:
|
|
$ref: ./examples.yml#/PreconditionRequired
|
|
TooManyRequests:
|
|
description: Too many requests; code rate_limited.
|
|
headers:
|
|
Retry-After:
|
|
$ref: ./headers.yml#/RetryAfter
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
rate_limited:
|
|
$ref: ./examples.yml#/RateLimited
|
|
Internal:
|
|
description: Unexpected server error; code internal.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
internal:
|
|
$ref: ./examples.yml#/Internal
|
|
NotImplemented:
|
|
description: >-
|
|
The operation is declared in the contract but not implemented yet; code
|
|
not_implemented.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
not_implemented:
|
|
$ref: ./examples.yml#/NotImplemented
|
|
Problem:
|
|
description: >-
|
|
Any error response. The body is a Problem whose `status` equals the HTTP
|
|
status and whose `code` is one of ProblemCode.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
validation_failed:
|
|
$ref: ./examples.yml#/ValidationFailed
|
|
not_found:
|
|
$ref: ./examples.yml#/NotFound
|
|
internal:
|
|
$ref: ./examples.yml#/Internal
|
|
not_implemented:
|
|
$ref: ./examples.yml#/NotImplemented
|
|
RegistrationValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a registration rule:
|
|
a password outside 15-128 characters or on the blocklist, or a consent
|
|
text version that is not the current one; code validation_failed with
|
|
body pointers. An email that already belongs to an account is never a
|
|
validation error.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
validation_failed:
|
|
$ref: ./examples.yml#/RegistrationValidationFailed
|
|
EmailVerificationFailed:
|
|
description: >-
|
|
The token cannot verify an email. Code verification_token_expired means
|
|
the token is past its lifetime; verification_token_invalid means it is
|
|
unknown, already used, or replaced by a newer link; validation_failed
|
|
with the pointer `/token` means the token is malformed. Nothing was
|
|
changed in any case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
verification_token_expired:
|
|
$ref: ./examples.yml#/VerificationTokenExpired
|
|
verification_token_invalid:
|
|
$ref: ./examples.yml#/VerificationTokenInvalid
|
|
validation_failed:
|
|
$ref: ./examples.yml#/VerificationTokenMalformed
|
|
EmailVerificationCodeFailed:
|
|
description: >-
|
|
The code does not verify the email. Code verification_token_invalid covers
|
|
every refusal in the same shape: an unknown address, an address without an
|
|
open code, a wrong code, an expired code, a wrong password, and a code that
|
|
was burned after five failed attempts. Code validation_failed means the
|
|
body does not match the contract, such as a code that is not six digits,
|
|
and carries the pointer `/code`, `/email`, or `/password`. Nothing was
|
|
changed in any case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
verification_code_invalid:
|
|
$ref: ./examples.yml#/VerificationCodeInvalid
|
|
validation_failed:
|
|
$ref: ./examples.yml#/VerificationCodeMalformed
|
|
InvalidCredentials:
|
|
description: >-
|
|
The email and password do not match an account; code
|
|
invalid_credentials. An unknown email and a wrong password get the same
|
|
response.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
invalid_credentials:
|
|
$ref: ./examples.yml#/InvalidCredentials
|
|
CsrfCheckFailed:
|
|
description: >-
|
|
The request failed cross-site request protection: the X-CSRF-Token
|
|
header is missing or does not belong to the session, or the Origin is
|
|
not allowed; code csrf_check_failed. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
csrf_check_failed:
|
|
$ref: ./examples.yml#/CsrfCheckFailed
|
|
CsrfCheckFailedOrForbidden:
|
|
description: >-
|
|
The request failed cross-site request protection, code
|
|
csrf_check_failed: the X-CSRF-Token header is missing or does not belong
|
|
to the session, or the Origin is not allowed. Or the account may not
|
|
perform the operation, code forbidden. Nothing was changed in either
|
|
case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
csrf_check_failed:
|
|
$ref: ./examples.yml#/CsrfCheckFailed
|
|
forbidden:
|
|
$ref: ./examples.yml#/Forbidden
|
|
QuestionnaireValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a questionnaire rule:
|
|
more than two specializations, an unknown specialization, grade, or task
|
|
language, an unknown field such as confirmed_grade, a repeated
|
|
specialization, or a task language that the specialization's published
|
|
bank does not offer; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
too_many_specializations:
|
|
$ref: ./examples.yml#/QuestionnaireTooManySpecializations
|
|
unknown_grade:
|
|
$ref: ./examples.yml#/QuestionnaireUnknownGrade
|
|
repeated_specialization:
|
|
$ref: ./examples.yml#/QuestionnaireRepeatedSpecialization
|
|
QuestionnaireVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current questionnaire version; code
|
|
version_conflict. Nothing was changed; read the questionnaire again
|
|
before retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/VersionConflict
|
|
AssessmentAttemptCreateValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates an assessment rule: an
|
|
unknown specialization, grade, or task language, an unknown field such
|
|
as mode or seed, a specialization that is not in the questionnaire, or
|
|
a task language that the published bank does not offer; code
|
|
validation_failed with body pointers. Nothing was created, and the
|
|
outcome is not stored under the Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
specialization_not_in_questionnaire:
|
|
$ref: ./examples.yml#/AssessmentSpecializationNotInQuestionnaire
|
|
AssessmentAnswerValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or the answer does not fit the
|
|
item: a format other than the item format, an option, element, or line
|
|
that the item does not have, an order that is not a permutation of every
|
|
element, more selections than the item allows, a text longer than the
|
|
item allows, a language that the practice does not offer, or an unknown
|
|
field such as score or duration; code validation_failed with body
|
|
pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was stored, and the outcome is
|
|
not stored under the Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
unknown_option:
|
|
$ref: ./examples.yml#/AssessmentAnswerUnknownOption
|
|
score_sent_by_client:
|
|
$ref: ./examples.yml#/AssessmentAnswerUnknownField
|
|
AssessmentCommandConflict:
|
|
description: >-
|
|
The attempt state does not allow the answer at the current version, code
|
|
state_conflict: the attempt is terminal or past its limits, the item is
|
|
not the current item, the item already has a different answer, or the
|
|
practice has a pending or finished verdict and the submission differs.
|
|
Or a request with the same Idempotency-Key is still running, code
|
|
idempotency_in_progress. Nothing was changed in either case; read the
|
|
attempt to see its state.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/AssessmentItemNotCurrent
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
AssessmentFinalizeConflict:
|
|
description: >-
|
|
The attempt state does not allow finalize at the current version, code
|
|
state_conflict: items or the main practice are unfinished, a practice
|
|
verdict is pending, or the attempt ended as expired or insufficient_bank.
|
|
If required questions are unfinished, the response includes their frozen
|
|
IDs in `pending_item_ids`; other state conflicts omit that field. Or a
|
|
request with the same Idempotency-Key is still running, code
|
|
idempotency_in_progress. Nothing was changed in either case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/AssessmentFinalizeConflictProblem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/AssessmentFinalizeNotReady
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
AssessmentCreateConflict:
|
|
description: >-
|
|
No attempt can start for the category now, code state_conflict: the
|
|
specialization already has an active attempt, a retry or promotion
|
|
interval or the attempt limit blocks the grade, or the bank is
|
|
insufficient. GetMyAssessmentAvailability tells which, with the date
|
|
when a blocked attempt opens. Or a request with the same Idempotency-Key
|
|
is still running, code idempotency_in_progress. Nothing was created in
|
|
either case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/AssessmentAttemptNotAvailable
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
AssessmentResultNotReady:
|
|
description: >-
|
|
The attempt is still active, so it has no result yet; code
|
|
state_conflict. The attempt state tells what remains to be done.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/AssessmentResultNotReady
|
|
AssessmentVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current attempt version; code
|
|
version_conflict. Nothing was changed, and the outcome is not stored
|
|
under the Idempotency-Key; read the attempt again before retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/AssessmentStaleVersion
|
|
NeedValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a need rule: an unknown
|
|
field such as rec_score, members, or candidate_minimum, a field sent as a
|
|
bare value instead of `{value, status}`, a list sent as null, an unknown
|
|
specialization, grade, work format, currency, period, or tax basis, a
|
|
salary bound that is not a positive multiple of 1000, a lower bound that
|
|
is not below the upper one, a range width outside 10-40% of its midpoint,
|
|
a repeated skill or task, status `extracted` with a value that is not the
|
|
stored suggestion, a vacancy that is not a vacancy of the organization,
|
|
or a missing or invalid expected_version; code validation_failed with
|
|
body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed, and the
|
|
outcome is not stored under an Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
reversed_salary_range:
|
|
$ref: ./examples.yml#/NeedSalaryRangeReversed
|
|
equal_salary_bounds:
|
|
$ref: ./examples.yml#/NeedSalaryEqualBounds
|
|
salary_range_too_wide:
|
|
$ref: ./examples.yml#/NeedSalaryRangeTooWide
|
|
salary_without_tax_basis:
|
|
$ref: ./examples.yml#/NeedSalaryWithoutTaxBasis
|
|
extracted_value_mismatch:
|
|
$ref: ./examples.yml#/NeedExtractedValueMismatch
|
|
recommendation_score_sent_by_client:
|
|
$ref: ./examples.yml#/NeedUnknownField
|
|
missing_expected_version:
|
|
$ref: ./examples.yml#/NeedMissingExpectedVersion
|
|
NeedVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current need version; code
|
|
version_conflict. Nothing was changed; read the need again before
|
|
retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/NeedStaleVersion
|
|
SupportCaseValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a case rule: an empty
|
|
or blank description, including one made only of Unicode spaces, an
|
|
unknown case type, an object identifier that is not a UUID, an object
|
|
type that the
|
|
case type does not accept, a missing required field of the type, an
|
|
unknown field such as status, decision, moderator, or priority, or a
|
|
complaint reason that requires an invitation reference; code
|
|
validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was
|
|
created, and the outcome is not stored under the Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
blank_description:
|
|
$ref: ./examples.yml#/SupportCaseBlankDescription
|
|
unknown_type:
|
|
$ref: ./examples.yml#/SupportCaseUnknownType
|
|
decision_sent_by_client:
|
|
$ref: ./examples.yml#/SupportCaseUnknownField
|
|
malformed_object_id:
|
|
$ref: ./examples.yml#/SupportCaseMalformedReference
|
|
complaint_reason_needs_invitation:
|
|
$ref: ./examples.yml#/SupportCaseComplaintNeedsInvitation
|
|
SupportCaseCreateConflict:
|
|
description: >-
|
|
The referenced object does not allow this case now, code
|
|
state_conflict: the attempt of a grade appeal has no result yet, the
|
|
case referenced by a grade appeal is not a manual assessment resolved
|
|
with the outcome assessed, the attempt of an anti-cheat appeal has no
|
|
anti-cheat review decision, the attempt or the manual assessment
|
|
already has an appeal of the same type, or an open case of the same
|
|
type already exists for the category or the object. Or a request
|
|
with the same Idempotency-Key is still running, code
|
|
idempotency_in_progress. Nothing was created in either case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/SupportCaseAppealExists
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
InvitationValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates an invitation rule: a
|
|
missing term or package condition, a package condition left out instead
|
|
of `not_provided`, a salary range without its tax basis, a salary bound
|
|
that is not a positive multiple of 1000, a lower bound that is not below
|
|
the upper one, a range width outside 10-40% of its midpoint, the
|
|
`office` or `hybrid` format without a place of work, a repeated
|
|
technology, a candidate handle that the organization cannot use, a need
|
|
or requirements version that the organization does not have, a response
|
|
period other than 3, 7, or 14 days, an unknown field such as a
|
|
candidate's email address or salary minimum, or a missing or invalid
|
|
expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed, and the outcome is not stored under an
|
|
Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
without_tax_basis:
|
|
$ref: ./examples.yml#/InvitationWithoutTaxBasis
|
|
without_communication_method:
|
|
$ref: ./examples.yml#/InvitationWithoutCommunicationMethod
|
|
package_condition_left_out:
|
|
$ref: ./examples.yml#/InvitationPackageItemMissing
|
|
salary_range_too_wide:
|
|
$ref: ./examples.yml#/InvitationSalaryRangeTooWide
|
|
location_required:
|
|
$ref: ./examples.yml#/InvitationLocationRequired
|
|
unknown_candidate:
|
|
$ref: ./examples.yml#/InvitationUnknownCandidate
|
|
candidate_data_in_body:
|
|
$ref: ./examples.yml#/InvitationCandidateDataInBody
|
|
InvitationAcceptValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a rule of the consent
|
|
C4: a missing `terms_version` or `expected_version`, `accepted` other
|
|
than true, an empty or repeated choice of contact fields, an unknown
|
|
field kind, a field that the candidate's profile does not hold, a
|
|
consent text version that is not the published one, or an unknown field
|
|
such as a contact value; code validation_failed with body pointers.
|
|
Nothing was changed, no consent or grant was recorded, and the outcome
|
|
is not stored under the Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
empty_field_choice:
|
|
$ref: ./examples.yml#/InvitationConsentWithoutFields
|
|
outdated_consent_text:
|
|
$ref: ./examples.yml#/InvitationConsentTextOutdated
|
|
missing_terms_version:
|
|
$ref: ./examples.yml#/InvitationMissingTermsVersion
|
|
InvitationVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current invitation version, or, for an
|
|
acceptance, `terms_version` is not the current terms version; code
|
|
version_conflict. Nothing was changed, no consent or grant was
|
|
recorded, and the outcome is not stored under an Idempotency-Key; read
|
|
the invitation again before retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
stale_terms:
|
|
$ref: ./examples.yml#/InvitationStaleTerms
|
|
stale_version:
|
|
$ref: ./examples.yml#/InvitationStaleVersion
|
|
InvitationCommandConflict:
|
|
description: >-
|
|
The state of the invitation does not allow the command, code
|
|
state_conflict: for example an acceptance of a withdrawn or expired
|
|
invitation or one past its deadline, a send of an invitation that is no
|
|
longer a draft, a send blocked by the pending limit of the need or by
|
|
the pause after a decline, or a second raise of the upper salary bound.
|
|
The invitation tells the client its state. Or a request with the same
|
|
Idempotency-Key is still running, code idempotency_in_progress. Nothing
|
|
was changed in either case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
not_answerable:
|
|
$ref: ./examples.yml#/InvitationNotAnswerable
|
|
salary_raise_used:
|
|
$ref: ./examples.yml#/InvitationSalaryRaiseUsed
|
|
send_blocked:
|
|
$ref: ./examples.yml#/InvitationSendBlocked
|
|
idempotency_in_progress:
|
|
$ref: ./examples.yml#/IdempotencyInProgress
|
|
OrganizationValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates an organization rule:
|
|
a missing name, an unknown field such as role, verification_level,
|
|
verification, members, owner, or version, a name or sphere with
|
|
surrounding whitespace or a line break, a website that is not an https
|
|
URL of a host name, a phone number outside E.164, a Telegram username
|
|
without the leading @, a contact that has no valid form, more than ten
|
|
representatives, or a missing or invalid expected_version; code
|
|
validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed, and the
|
|
outcome is not stored under an Idempotency-Key.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
role_sent_by_client:
|
|
$ref: ./examples.yml#/OrganizationUnknownField
|
|
website_not_https:
|
|
$ref: ./examples.yml#/OrganizationWebsiteNotHttps
|
|
name_with_surrounding_whitespace:
|
|
$ref: ./examples.yml#/OrganizationNameWithWhitespace
|
|
missing_expected_version:
|
|
$ref: ./examples.yml#/OrganizationMissingExpectedVersion
|
|
OrganizationVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current version of the organization; code
|
|
version_conflict. Nothing was changed; read the organization again
|
|
before retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/OrganizationStaleVersion
|
|
ProfileValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or violates a profile rule: an
|
|
unknown field such as confirmed_grade, category, trust_level, or source,
|
|
a phone number outside E.164, a Telegram username without the leading @,
|
|
an email that is not an address, a month outside the YYYY-MM format, a
|
|
salary that is not a positive multiple of 1000, more items than a list
|
|
allows, a repeated tag, skill, or role specialization, a period that
|
|
ends before it starts or lies in the future, a decision extracted for a
|
|
value that is not a stored suggestion, an overlapping experience period
|
|
without an explicit date-pair acknowledgement, or a missing or invalid
|
|
expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed. The problem never repeats a submitted value, because the body is personal data.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
phone_not_e164:
|
|
$ref: ./examples.yml#/ProfilePhoneNotE164
|
|
extracted_value_changed:
|
|
$ref: ./examples.yml#/ProfileExtractedValueChanged
|
|
repeated_role:
|
|
$ref: ./examples.yml#/ProfileRepeatedRole
|
|
ProfileVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current profile version; code
|
|
version_conflict. Nothing was changed; read the profile again before
|
|
retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/ProfileStaleVersion
|
|
PrivacyValidationFailed:
|
|
description: >-
|
|
The body does not match the contract or breaks a visibility rule: an
|
|
unknown field, a repeated or unknown card field, a published state with
|
|
no field, a closed state with a field, a search status other than
|
|
looking and not_looking, or a missing or invalid expected_version; code
|
|
validation_failed with body pointers. Nothing was changed. The problem
|
|
never repeats a submitted value.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
published_without_fields:
|
|
$ref: ./examples.yml#/PrivacyPublishedWithoutFields
|
|
PrivacyVersionConflict:
|
|
description: >-
|
|
`expected_version` is not the current version of the setting; code
|
|
version_conflict. Nothing was changed; read the settings again before
|
|
retrying.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
version_conflict:
|
|
$ref: ./examples.yml#/PrivacyStaleVersion
|
|
PublicationConsentRequired:
|
|
description: >-
|
|
The profile cannot be published because the account has no active,
|
|
unrevoked C2 consent; code state_conflict. Nothing was changed. The
|
|
candidate gives C2 in the consent settings first. `errors` holds the entry
|
|
`{in: body, pointer: /state, code: consent_required}`.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
state_conflict:
|
|
$ref: ./examples.yml#/PublicationConsentRequiredConflict
|
|
HiddenOrganizationLimit:
|
|
description: >-
|
|
The candidate already hides the maximum number of organizations (1000);
|
|
code state_conflict with the entry `{in: path, pointer: /org_id, code:
|
|
limit_reached}` in `errors`. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: ./schemas.yml#/Problem
|
|
examples:
|
|
limit_reached:
|
|
$ref: ./examples.yml#/HiddenOrganizationLimitReached
|