diff --git a/openapi.v1.yaml b/openapi.v1.yaml index de9b3475..706c6a47 100644 --- a/openapi.v1.yaml +++ b/openapi.v1.yaml @@ -37,13 +37,6 @@ paths: patch: summary: Upserts the agent operationId: updateJobAgent - parameters: - - name: workspace - in: path - required: true - schema: - type: string - description: Name of the workspace requestBody: required: true content: diff --git a/packages/node-sdk/src/apis/DefaultApi.ts b/packages/node-sdk/src/apis/DefaultApi.ts index 1136aa96..b96370c8 100644 --- a/packages/node-sdk/src/apis/DefaultApi.ts +++ b/packages/node-sdk/src/apis/DefaultApi.ts @@ -87,7 +87,6 @@ export interface UpdateJobOperationRequest { } export interface UpdateJobAgentOperationRequest { - workspace: string; updateJobAgentRequest: UpdateJobAgentRequest; } @@ -563,13 +562,6 @@ export class DefaultApi extends runtime.BaseAPI { requestParameters: UpdateJobAgentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction, ): Promise> { - if (requestParameters["workspace"] == null) { - throw new runtime.RequiredError( - "workspace", - 'Required parameter "workspace" was null or undefined when calling updateJobAgent().', - ); - } - if (requestParameters["updateJobAgentRequest"] == null) { throw new runtime.RequiredError( "updateJobAgentRequest", @@ -590,10 +582,7 @@ export class DefaultApi extends runtime.BaseAPI { const response = await this.request( { - path: `/v1/job-agents/name`.replace( - `{${"workspace"}}`, - encodeURIComponent(String(requestParameters["workspace"])), - ), + path: `/v1/job-agents/name`, method: "PATCH", headers: headerParameters, query: queryParameters,