marketing-guidelines

Get Requirement

Changed on

One requirement's live revision, for a surface holding an id rather than the list.

The risk-triage source dialog knows a requirement_id from the citation it is showing, and editing needs the live revision — the citation carries the revision that was judged, which is deliberately historical. Filtering the whole library down to one row would answer a one-row question with a page of them.

get/marketing/guidelines/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/marketing/guidelines/requirements/{requirement_id}
  • Auth
    none declared

Path parameters

requirement_idstring uuid required

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