Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[DGR-4848] Document framework skills on group clone - #149

Open
sandilya91 wants to merge 1 commit into
developfrom
DGR-4848-clone-framework-skills
Open

sandilya91 wants to merge 1 commit into
developfrom
DGR-4848-clone-framework-skills

Conversation

@sandilya91

@sandilya91 sandilya91 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

What & why

POST /v1/issuer/groups/:id/clone now applies skill_framework_version_id and
framework_skills from the request body instead of ignoring them, so one call
can clone a Group and re-skill it (DGR-4848, upstream
accredible/accredible-credential-api#5345). The docs still told integrators both
keys were ignored and that the only 207 was a retired source version. This
documents the two request params, the new source_framework_copied code, and
what happens when the requested skills cannot be attached.

POST /v1/issuer/groups/42/clone
{
  "group": {
    "name": "Reskilled copy",
    "skill_framework_version_id": 512,
    "framework_skills": [
      {
        "id": 59301,
        "breadcrumb_ids": [
          59298,
          59299,
          59300
        ]
      }
    ]
  }
}

The clone comes back with skill 59301 alone; the original's skills are replaced,
not merged.

Rendered

Operation description, the four paragraphs that carry the behaviour:

Clone a Group description

The two new request params:

skill_framework_version_id and framework_skills

New source_framework_copied row in the shared error table:

source_framework_copied row

Five more: item schema, 207 response, code enum, learning_outcomes, reworded error rows

framework_skills item schema:

framework_skills items

207 response and its errors description:

207 response

code enum with the new value appended:

code enum

Reworded learning_outcomes, beside the new 207 response sample:

learning_outcomes and 207 sample

Reworded framework_params_incomplete, framework_not_available,
version_retired and framework_skills_malformed rows:

error table

Images live on the dgr-4848-docs-screenshots branch, which is not part of the
docs build. Delete it when this merges.

Review notes

  • Draft: #5345 reached develop this morning and is not on blue yet. A probe
    there still mirrored the source for framework_skills: null, so every claim
    here comes from the merged service and its specs rather than a live run. Re-run
    it on blue before merging, since develop auto-deploys to
    docs.api.accredible.com.
  • Start at the operation description. Its four framework paragraphs carry the
    behaviour; the request params and the 207 point back at them.
  • For clone, framework_not_available and version_retired no longer mean the
    same thing: a source whose framework is mid-retirement for its Department now
    reports the former, which the old table folded into the latter.
  • Two clone-only caveats went into the shared error table: a lone
    skill_framework_version_id is ignored rather than reported, and a
    blank-but-not-null framework_skills is now reported instead of silently
    dropping the framework.

Clone previously ignored skill_framework_version_id and framework_skills;
accredible-credential-api#5345 now validates them through the create path
and replaces the original's skills. Adds the two request params, the
source_framework_copied 207 code, and the fallback rules to the shared
error table.
@sandilya91
sandilya91 marked this pull request as ready for review September 22, 2026 12:29
@sandilya91 sandilya91 closed this Sep 22, 2026
@sandilya91 sandilya91 reopened this Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant