---
title: "PUT /api/gateway/config/services/{serviceId}/routes"
method: PUT
path: "/api/gateway/config/services/{serviceId}/routes"
tags: ["API Gateway"]
---

# PUT /api/gateway/config/services/{serviceId}/routes

`PUT /api/gateway/config/services/{serviceId}/routes`

## Path parameters

- `serviceId` string, required

## Request body

- ServiceRoute
  - `cacheConfig` CacheConfig
    - `key` string
    - `ttlInSecond` integer
  - `createTime` integer
  - `createdBy` string
  - `description` string
  - `httpMethod` string, required
  - `inputSchema` string
  - `inputSchemaRef` SchemaReference
    - `name` string, required
    - `version` integer, required
  - `inputScript` string
  - `mappedWorkflow` MappedWorkflow
    - `name` string
    - `requestMetadataAsInput` boolean
    - `version` integer
  - `orgId` string
  - `outputSchema` string
  - `outputSchemaRef` SchemaReference
    - `name` string, required
    - `version` integer, required
  - `outputScript` string
  - `path` string, required
  - `queryParameters` QueryParameter[] — unresolved $ref
  - `rateLimitConfig` RateLimitConfig
    - `concurrentExecLimit` integer
    - `policy` 'QUEUE' | 'REJECT'
    - `rateLimitKey` string
  - `serviceId` string
  - `tags` Tag[]
    - `key` string
    - `type` string
    - `value` string
  - `timeoutInSeconds` integer
  - `updateTime` integer
  - `updatedBy` string
  - `waitUntilTasks` string
  - `workflowExecutionMode` 'SYNCHRONOUS' | 'ASYNCHRONOUS'
  - `workflowMetadataInOutput` boolean

## Response `200`

OK

- object

---

[API](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server.md) · [All operations](https://skmtc.dev/orkescloud/apis/orkes-conductor-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orkescloud/orkes-conductor-api-server/revisions/6ebf0c14ac41/schema)
