CreateArtifact creates a specified artifact.

post/v1/projects/{project}/artifacts

Path parameters

projectstring required

The project id.

Query parameters

artifact_idstring

The ID to use for the artifact, which will become the final component of the artifact's resource name. This value should be at most 80 characters, and valid characters are /[a-z][0-9]-./.

Request body

namestring

Resource name.

create_timestring RFC3339

Creation timestamp.

update_timestring RFC3339

Last update timestamp.

mime_typestring

A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information.

size_bytesinteger

The size of the artifact in bytes.

hashstring

A SHA-256 hash of the artifact's contents

contentsstring bytes

The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.

Response

OK

namestring

Resource name.

create_timestring RFC3339

Creation timestamp.

update_timestring RFC3339

Last update timestamp.

mime_typestring

A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information.

size_bytesinteger

The size of the artifact in bytes.

hashstring

A SHA-256 hash of the artifact's contents

contentsstring bytes

The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.

Changes