internal
internal-standards-extraction

Update Requirement

Changed on

Change a requirement's wording, guidance, scope or trigger terms as a new revision.

Attributed to the staff member who made it, which is the point of the console: the history says Kobalt corrected this, not that the customer did.

patch/internal/evals/standards/requirements/{requirement_id}

Request

  • Base URL
    https://api.kobaltlabs.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.kobaltlabs.com/internal/evals/standards/requirements/{requirement_id}
  • Auth
    none declared

Path parameters

requirement_idstring uuid required

Query parameters

company_idstring uuid required

The company whose library to operate on.

Request body

base_revision_numberinteger nullable
requirement_textstring nullable
judging_guidancestring nullable
collateral_typesMarketingCollateralType[] nullable
marketing_team_idsstring[] nullable
trigger_termsstring[] nullable
change_notestring nullable

Response

Successful Response

requirement_idstring uuid required
file_idstring uuid required
filenamestring nullable required
decomposition_idstring uuid nullable required
guideline_set_idstring uuid nullable required
ordinalinteger required
revision_numberinteger required
state'active' | 'disabled' | 'archived' | 'superseded' | 'proposed' required

Whether a requirement is in the working library, and if not, why not.

All of them are recorded as revisions, so every one is reversible and readable.

ARCHIVED and SUPERSEDED are deliberately distinct: ARCHIVED is a person deciding this obligation does not apply to them, SUPERSEDED is a newer decomposition of the same guideline taking over. A regeneration must never overwrite the first with the second — that would erase a human decision.

requirement_textstring required
judging_guidancestring nullable required
contextstring nullable required
collateral_typesMarketingCollateralType[] nullable required
marketing_team_idsstring[] nullable required
source_collateral_termsstring[] nullable required
trigger_termsstring[] required
unresolved_collateral_termsstring[] required
section_labelstring nullable required
titlestring nullable required
source_pageinteger nullable required
change_kind'extracted' | 'edited' | 'disabled' | 'enabled' | 'archived' | 'restored' | 'superseded' | 'proposed' | 'approved' required

What a revision was for.

Redundant with comparing a revision to its predecessor, and that is the point: the reason a change was made is the part a diff cannot recover.

change_notestring nullable required
updated_atstring date-time required
updated_by_emailstring nullable required
has_human_editsboolean required
downvotesinteger nullable

Changes

    • breaking

      response property decomposition_id list-of-types was widened by adding types null to media type application/json of response 200

    • warning

      added the new approved enum value to the response property for the response status

    • warning

      added the new proposed enum value to the response property for the response status

    • warning

      added the new proposed enum value to the response property for the response status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status