# \ArtifactLabelsApi
All URIs are relative to *http://localhost*
[**add_artifact_label**](ArtifactLabelsApi.md#add_artifact_label) | **POST** /api/v1/artifacts/{id}/labels/{label_key} | Add or update a single label on an artifact
[**delete_artifact_label**](ArtifactLabelsApi.md#delete_artifact_label) | **DELETE** /api/v1/artifacts/{id}/labels/{label_key} | Delete a label by key from an artifact
[**list_artifact_labels**](ArtifactLabelsApi.md#list_artifact_labels) | **GET** /api/v1/artifacts/{id}/labels | List all labels on an artifact
[**set_artifact_labels**](ArtifactLabelsApi.md#set_artifact_labels) | **PUT** /api/v1/artifacts/{id}/labels | Set all labels on an artifact (replaces existing)
## add_artifact_label
> models::ArtifactLabelResponse add_artifact_label(id, label_key, add_artifact_label_request)
Add or update a single label on an artifact
### Parameters
**id** | **uuid::Uuid** | Artifact ID | [required] |
**label_key** | **String** | Label key to set | [required] |
**add_artifact_label_request** | [**AddArtifactLabelRequest**](AddArtifactLabelRequest.md) | | [required] |
### Return type
[**models::ArtifactLabelResponse**](ArtifactLabelResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_artifact_label
> delete_artifact_label(id, label_key)
Delete a label by key from an artifact
### Parameters
**id** | **uuid::Uuid** | Artifact ID | [required] |
**label_key** | **String** | Label key to remove | [required] |
### Return type
(empty response body)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_artifact_labels
> models::ArtifactLabelsListResponse list_artifact_labels(id)
List all labels on an artifact
### Parameters
**id** | **uuid::Uuid** | Artifact ID | [required] |
### Return type
[**models::ArtifactLabelsListResponse**](ArtifactLabelsListResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## set_artifact_labels
> models::ArtifactLabelsListResponse set_artifact_labels(id, set_artifact_labels_request)
Set all labels on an artifact (replaces existing)
### Parameters
**id** | **uuid::Uuid** | Artifact ID | [required] |
**set_artifact_labels_request** | [**SetArtifactLabelsRequest**](SetArtifactLabelsRequest.md) | | [required] |
### Return type
[**models::ArtifactLabelsListResponse**](ArtifactLabelsListResponse.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)