Add License Conclusion

puthttps://app.fossa.com/api/license-conclusions/conclude

Add a license to the license conclusions for a dependency revision. Requires Edit permission on the dependency revision.

Request body (required) · application/json

dependencyRevisionLocatorstringrequired

The locator of the dependency revision

scopeobjectrequired
licenseIdstringrequired

The license ID to add or remove

originIdstring

Optional origin revision or release ID to trigger an issue scan

Responses

201License conclusion added successfully
dependencyRevisionLocatorstringrequired

The locator of the dependency revision

scopeenumrequired

The scope of the license conclusion. May be `null` for auto-generated conclusions.

projectrevisionrelease_groupreleaseorganizationglobal
scopeIdstringrequired

The ID of the scope (project locator, revision locator, release group ID, etc.). `null` for global conclusions.

concludedLicensesstring[]required

The list of concluded licenses for this dependency

createdAtstring <date-time>required

The date and time the conclusion was created

updatedAtstring <date-time>required

The date and time the conclusion was last updated

400Bad Request
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

403Forbidden
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

404Not Found
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

Try this endpoint

Build a request and run it against app.fossa.com.

Bearer

Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.

PUT https://app.fossa.com/api/license-conclusions/conclude
curl --request PUT \  --url 'https://app.fossa.com/api/license-conclusions/conclude' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN' \  --header 'content-type: application/json' \  --data '{  "dependencyRevisionLocator": "npm+lodash$4.17.21",  "scope": {    "scope": "project",    "projectLocator": "git+github.com/fossas/fossa-cli$main"  },  "licenseId": "MIT",  "originId": "git+github.com/fossas/fossa-cli$main"}'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.
Enter a Bearer token before running this request.
application/json