Update Revision

patchhttps://app.fossa.com/api/revisions/{locator}

Update revision metadata.

Path parameters

locatorstringrequired

Request body (required) · application/json

linkstring

New link for Revision

urlstring

New url for Revision

authorstring

New author for Revision

Responses

200OK
locobject

Normalized representation of the Locator

fetcherstring

the external package manager or internal representation of one

packagestring

the package name

revisionstring

the version/revision of the package

locatorstring

Text ID that uniquely identifies a project

resolvedboolean

Has the Revision been fully analyzed by FOSSA

projectIdstring

The Project locator that the Revision belongs to

source_typestring | null

FOSSA internal representation of the source language for the given repository/project

sourcestring | null

The source the Revision originated from (for example `github`, `cli`, `archive`, `container`, `sbom`, or `binary`)

unresolved_issue_countnumber | null

The number of unresolved issues found for this Revision

errorstring | null

Error message during analysis (if any)

messagestring | null

Message of the revision or commit

revision_timestampstring | null

timestamp of when the Revision was published

latestRevisionScanIdnumber | null

The Revision Scan ID of the latest policy scan

latestHubbleAnalysisIdnumber | null

The Hubble Analysis ID of the latest analysis

createdAtstring

when the Revision was added to the FOSSA Database

updatedAtstring

when the Revision was last updated in the FOSSA Database

400BadRequest — returned when no request body is provided.
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

404NotFound
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.

PATCH https://app.fossa.com/api/revisions/%7Blocator%7D
curl --request PATCH \  --url 'https://app.fossa.com/api/revisions/%7Blocator%7D' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN' \  --header 'content-type: application/json' \  --data '{  "link": "string",  "url": "string",  "author": "string"}'

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.

Path params

locatorstringrequired
application/json