Skip to main content
POST
Publish config revision

Authorizations

Authorization
string
header
required

An admin API key. Personal admin keys reach the API key, billing and Account endpoints for the creator's personal account; the other endpoints need an organization admin key. Security requirement entries list the permission a scoped key needs for the operation.

Scopes

config-registry.publish

Body

application/json
name
string
required

Revision name /org/project/revision in one of the caller's namespaces. The org and project are lowercase letters, digits and hyphens; the revision is letters, digits, periods, underscores and hyphens, at most 128 characters.

config
string<byte>

The config bytes, YAML or JSON, base64-encoded, at most 1 MiB. Send either config or commit.

commit
string

Full SHA of a commit on the default branch of the repository file the project is linked to (see Link a project source). The registry publishes the file as it stands at that commit. A linked project is published only this way. Send either config or commit.

Pattern: ^[0-9a-f]{40}$
visibility
enum<string>
default:private

Whether anyone can read the config and its endorsements, or only the owner.

Available options:
public,
private
auto_renew
boolean
default:true

Whether the registry renews the endorsement before it expires.

Response

Revision queued for endorsement

id
string<uuid>
required
name
string
required
digest
string
required

Hex SHA-256 digest of the config.

private
boolean
required
scope
string
required

Registry scope the endorsement names; https://registry.tinfoil.sh/scopes/public for public revisions, otherwise the owner's private scope.

auto_renew
boolean
required
approved
boolean
required

False once the revision is withdrawn.

source
object

The repository file and commit a revision was published from, with the state of the commit's checks when it was read. Present only on revisions published from a commit, and only to the revision's owner.

published_with_key
object

The admin key a revision was published with. Present only when an admin key published it, and only to the revision's owner.