diff --git a/clients/cli/go.sum b/clients/cli/go.sum index e347d682..29720112 100644 --- a/clients/cli/go.sum +++ b/clients/cli/go.sum @@ -218,8 +218,8 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM= github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= -github.com/phrase/phrase-go/v2 v2.24.0 h1:3UAbj1SQne4j0X5Wp0O6tsgxp5hvcJuzdSE3x2E52Qo= -github.com/phrase/phrase-go/v2 v2.24.0/go.mod h1:ARQGM+rzC0tPf3Lf4pHoRKpGtmQnBa7V7LSVs3oJf0U= +github.com/phrase/phrase-go/v2 v2.25.0 h1:LCiuHrvKxCv/ZYKW1csu/BfGt4ksZA+zF9ocb8mLxx8= +github.com/phrase/phrase-go/v2 v2.25.0/go.mod h1:ARQGM+rzC0tPf3Lf4pHoRKpGtmQnBa7V7LSVs3oJf0U= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= diff --git a/doc/compiled.json b/doc/compiled.json index d3ebf41d..f2fe2987 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -4386,6 +4386,15 @@ "type": "string" } }, + "key_id_as_id": { + "in": "path", + "name": "id", + "description": "Parent Translation Key ID", + "required": true, + "schema": { + "type": "string" + } + }, "figma_attachment_id": { "in": "path", "name": "figma_attachment_id", @@ -26636,7 +26645,10 @@ "$ref": "#/components/parameters/X-PhraseApp-OTP" }, { - "$ref": "#/components/parameters/account_id" + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/key_id_as_id" }, { "in": "query", @@ -26696,7 +26708,10 @@ "$ref": "#/components/parameters/X-PhraseApp-OTP" }, { - "$ref": "#/components/parameters/account_id" + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/key_id_as_id" } ], "responses": { @@ -26742,7 +26757,10 @@ "$ref": "#/components/parameters/X-PhraseApp-OTP" }, { - "$ref": "#/components/parameters/account_id" + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/key_id_as_id" } ], "requestBody": { @@ -26802,7 +26820,10 @@ "$ref": "#/components/parameters/X-PhraseApp-OTP" }, { - "$ref": "#/components/parameters/account_id" + "$ref": "#/components/parameters/project_id" + }, + { + "$ref": "#/components/parameters/key_id_as_id" }, { "in": "path", diff --git a/parameters.yaml b/parameters.yaml index be99fa5a..2bfd555e 100644 --- a/parameters.yaml +++ b/parameters.yaml @@ -74,6 +74,13 @@ key_id: required: true schema: type: string +key_id_as_id: + in: path + name: id + description: Parent Translation Key ID + required: true + schema: + type: string figma_attachment_id: in: path name: figma_attachment_id diff --git a/paths/key_links/batch_destroy.yaml b/paths/key_links/batch_destroy.yaml index b2c615da..f68ec8f6 100644 --- a/paths/key_links/batch_destroy.yaml +++ b/paths/key_links/batch_destroy.yaml @@ -5,7 +5,8 @@ tags: - Linked Keys parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" -- "$ref": "../../parameters.yaml#/account_id" +- "$ref": "../../parameters.yaml#/project_id" +- "$ref": "../../parameters.yaml#/key_id_as_id" - in: query name: unlink_parent required: false diff --git a/paths/key_links/create.yaml b/paths/key_links/create.yaml index 7a22f6a9..1a42648a 100644 --- a/paths/key_links/create.yaml +++ b/paths/key_links/create.yaml @@ -6,7 +6,8 @@ tags: - Linked Keys parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" -- "$ref": "../../parameters.yaml#/account_id" +- "$ref": "../../parameters.yaml#/project_id" +- "$ref": "../../parameters.yaml#/key_id_as_id" requestBody: required: true content: diff --git a/paths/key_links/destroy.yaml b/paths/key_links/destroy.yaml index c5a519ff..77f57117 100644 --- a/paths/key_links/destroy.yaml +++ b/paths/key_links/destroy.yaml @@ -6,7 +6,8 @@ tags: - Linked Keys parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" -- "$ref": "../../parameters.yaml#/account_id" +- "$ref": "../../parameters.yaml#/project_id" +- "$ref": "../../parameters.yaml#/key_id_as_id" - in: path name: child_key_id required: true diff --git a/paths/key_links/index.yaml b/paths/key_links/index.yaml index 0a690b84..7ce181bd 100644 --- a/paths/key_links/index.yaml +++ b/paths/key_links/index.yaml @@ -6,7 +6,8 @@ tags: - Linked Keys parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" -- "$ref": "../../parameters.yaml#/account_id" +- "$ref": "../../parameters.yaml#/project_id" +- "$ref": "../../parameters.yaml#/key_id_as_id" responses: '200': description: OK