GitLabApiClient icon indicating copy to clipboard operation
GitLabApiClient copied to clipboard

Updating Project Variable doesnt work

Open Rainson12 opened this issue 2 years ago • 0 comments

When trying to update a variable that exists multiple times an error is returned: GitLabApiClient.GitLabException: '{"message":"There are multiple variables with provided parameters. Please use 'filter[environment_scope]'"}'. This issue occurs even when the environmentScope is set like: await gitlabClient.Projects.UpdateVariableAsync(project.Id, new() { Key = rotation.AccessKeyIdVariableName, EnvironmentScope = rotation.Environment, Value = newKey.AccessKey.AccessKeyId });

Rainson12 avatar Jun 26 '23 14:06 Rainson12