Modifying release groups

Add projects to a release group and update the projects within an existing release group via the API.

1 min readUpdated Jul 10, 2026

Overview

This recipe shows how to create a release group with projects and how to update the projects in an existing release group.

Note

A FOSSA API token with Full access. See Authentication.

Adding projects to a new release group

Send a POST request to /api/project_group with the projects to include:

Shell
curl --request POST \  --url 'https://app.fossa.com/api/project_group' \  --header 'Authorization: Bearer YOUR_API_KEY' \  --header 'Content-Type: application/json' \  --data '{    "title": "My Release Group",    "release": {      "projects": [        {          "projectId": "custom+1234/example",          "branch": "main",          "revisionId": "custom+1234/example$2024-01-01T00:00:00Z"        }      ]    }  }'

Updating an existing release group

Send a PUT request to /api/project_group/<group-id>/release/<release-id> with the updated project list.

Note

You'll need a valid revisionId for each project. See Retrieving the latest revision.

Things to keep in mind:

  • A project can only belong to one release group at a time.
  • The revisionId must be a valid revision of the project.

Troubleshooting

Why am I getting a 400 error from the PUT endpoint?

A 400 usually means the request body is malformed, or a project you're adding already belongs to another release group.

© 2026 FOSSA, Inc.support@fossa.com