Skip to content

Commit 8cd4c1a

Browse files
committed
Rename field for artifact uploads
1 parent d1f5fb2 commit 8cd4c1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Api/Packages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function createCustomPackage($customJson, $credentialId = null)
7575

7676
public function createArtifactPackage(array $artifactPackageFileIds)
7777
{
78-
return $this->post('/packages/', ['repoType' => 'artifact', 'artifactFileIds' => $artifactPackageFileIds]);
78+
return $this->post('/packages/', ['repoType' => 'artifact', 'artifactIds' => $artifactPackageFileIds]);
7979
}
8080

8181
/**
@@ -93,7 +93,7 @@ public function editVcsPackage($packageName, $url, $credentialId = null, $type =
9393

9494
public function editArtifactPackage($packageName, array $artifactPackageFileIds)
9595
{
96-
return $this->put(sprintf('/packages/%s/', $packageName), ['artifactFileIds' => $artifactPackageFileIds, 'repoType' => 'artifact']);
96+
return $this->put(sprintf('/packages/%s/', $packageName), ['artifactIds' => $artifactPackageFileIds, 'repoType' => 'artifact']);
9797
}
9898

9999
/**

tests/Api/PackagesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testShowArtifacts()
9292
$expected = [
9393
'name' => 'acme-website/package',
9494
'repoType' => 'artifact',
95-
'artifactFiles' => 'artifact',
95+
'artifactIds' => 'artifact',
9696
];
9797

9898
/** @var Packages&\PHPUnit_Framework_MockObject_MockObject $api */

0 commit comments

Comments
 (0)