Create a source file tag

post/tags

Creates a tag for a source file.

Request Samples

Response Samples

1{
2 "description": "Files that contain confidential information.",
3 "id": "123e4567-e89b-12d3-a456-426614174000",
4 "insertTimestamp": "2025-12-12T19:48:53.448286+00:00",
5 "metadata": {},
6 "name": "confidential",
7 "updateTimestamp": "2025-12-12T19:48:53.448286+00:00"
8}

Request Body

The model for a source file request.

NameTypeRequiredDescription
description
string or null
false

The description of the source file tag.

metadata
Metadata or null
false

The metadata associated with the source file tag.

name
string
true

The name of the source file tag.

sourceId
string or null
false

The ID used to set a local source tag. If unset, the tag will be global.

Responses

StatusMeaningDescription
201Created

A tag was created.

HeadersSchema
400Bad Request

The request was invalid.

Schema
401Unauthorized

The user was not authenticated.

Schema
422Unprocessable Entity

The server understands the request but was unable to process the contained instructions.

Schema