Skip to content

Create new mutations for creating and removing framework labels

Create new mutations for assigning and unassigning framework labels for projects, with this we would need to add audit for addition and removal of frameworks from projects.

Mutations


mutation projectUpdateComplianceFrameworks {
  projectUpdateComplianceFrameworks(input: {projectId: "gid://gitlab/Project/<project_id>", 
    complianceFrameworkIds: ["gid://gitlab/ComplianceManagement::Framework/<framework1_id>",
      "gid://gitlab/ComplianceManagement::Framework/<framework2_id>"]}) {
    errors
    project {
     id
     name
    }
  }
}
Edited by Hitesh Raghuvanshi