---
title: Routes
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Magic Transit](https://developers.cloudflare.com/api/typescript/resources/magic_transit)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Routes

##### [List Routes](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/list)

client.magicTransit.routes.list(RouteListParams {account\_id } params, RequestOptionsoptions?): [RouteListResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)>) {routes }

GET/accounts/{account\_id}/magic/routes

##### [Route Details](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/get)

client.magicTransit.routes.get(stringrouteID, RouteGetParams {account\_id } params, RequestOptionsoptions?): [RouteGetResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)>) {route }

GET/accounts/{account\_id}/magic/routes/{route\_id}

##### [Create a Route](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/create)

client.magicTransit.routes.create(RouteCreateParams {account\_id, nexthop, prefix, 4 more } params, RequestOptionsoptions?): [RouteCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)>) {id, nexthop, prefix, 6 more }

POST/accounts/{account\_id}/magic/routes

##### [Update Route](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/update)

client.magicTransit.routes.update(stringrouteID, RouteUpdateParams {account\_id, nexthop, prefix, 4 more } params, RequestOptionsoptions?): [RouteUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)>) {modified, modified\_route }

PUT/accounts/{account\_id}/magic/routes/{route\_id}

##### [Delete Route](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/delete)

client.magicTransit.routes.delete(stringrouteID, RouteDeleteParams {account\_id } params, RequestOptionsoptions?): [RouteDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)>) {deleted, deleted\_route }

DELETE/accounts/{account\_id}/magic/routes/{route\_id}

##### [Update Many Routes](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/bulk_update)

client.magicTransit.routes.bulkUpdate(RouteBulkUpdateParams {account\_id, routes } params, RequestOptionsoptions?): [RouteBulkUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)>) {modified, modified\_routes }

PUT/accounts/{account\_id}/magic/routes

##### [Delete Many Routes](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/routes/methods/empty)

client.magicTransit.routes.empty(RouteEmptyParams {account\_id } params, RequestOptionsoptions?): [RouteEmptyResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)>) {deleted, deleted\_routes }

DELETE/accounts/{account\_id}/magic/routes

##### ModelsExpand Collapse

<details>

<summary>

Scope {colo\_names, colo\_regions }

Used only for ECMP routes.

</summary>

colo\_names?: Array&lt;string&gt;

List of colo names for the ECMP scope.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)%20%3E%20(property)%20colo_names">Link to this property</a>

colo\_regions?: Array&lt;string&gt;

List of colo regions for the ECMP scope.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)%20%3E%20(property)%20colo_regions">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)>)

<details>

<summary>

RouteListResponse {routes }

</summary>

<details>

<summary>

routes?: Array&lt;Route&gt;

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes%20%3E%20(items)%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)%20%3E%20(property)%20routes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_list_response%20%3E%20(schema)>)

<details>

<summary>

RouteGetResponse {route }

</summary>

<details>

<summary>

route?: Route {id, nexthop, prefix, 6 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)%20%3E%20(property)%20route">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_get_response%20%3E%20(schema)>)

<details>

<summary>

RouteCreateResponse {id, nexthop, prefix, 6 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)%20%3E%20(property)%20weight">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_create_response%20%3E%20(schema)>)

<details>

<summary>

RouteUpdateResponse {modified, modified\_route }

</summary>

modified?: boolean

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

modified\_route?: ModifiedRoute {id, nexthop, prefix, 6 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_route">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_update_response%20%3E%20(schema)>)

<details>

<summary>

RouteDeleteResponse {deleted, deleted\_route }

</summary>

deleted?: boolean

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted">Link to this property</a>

<details>

<summary>

deleted\_route?: DeletedRoute {id, nexthop, prefix, 6 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)%20%3E%20(property)%20deleted_route">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_delete_response%20%3E%20(schema)>)

<details>

<summary>

RouteBulkUpdateResponse {modified, modified\_routes }

</summary>

modified?: boolean

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

<details>

<summary>

modified\_routes?: Array&lt;ModifiedRoute&gt;

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes%20%3E%20(items)%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_routes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_bulk_update_response%20%3E%20(schema)>)

<details>

<summary>

RouteEmptyResponse {deleted, deleted\_routes }

</summary>

deleted?: boolean

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted">Link to this property</a>

<details>

<summary>

deleted\_routes?: Array&lt;DeletedRoute&gt;

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

nexthop: string

The next-hop IP Address for the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20nexthop">Link to this property</a>

prefix: string

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

priority: number

Priority of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20priority">Link to this property</a>

created\_on?: string

When the route was created.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

An optional human provided description of the static route.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

When the route was last modified.

formatdate-time

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20modified_on">Link to this property</a>

scope?: <a href="https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.routes%20%3E%20(model)%20scope%20%3E%20(schema)">Scope</a> {colo\_names, colo\_regions }

Used only for ECMP routes.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20scope">Link to this property</a>

weight?: number

Optional weight of the ECMP scope - if provided.

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes%20%3E%20(items)%20%3E%20(property)%20weight">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)%20%3E%20(property)%20deleted_routes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.routes%20%3E%20(model)%20route_empty_response%20%3E%20(schema)>)