Get a work zone
get
/rest/ofscMetadata/v1/workZones/{label}
This operation retrieves the attributes of the specified work zone.
Request
Path Parameters
-
label(required): string
Minimum Length:
1Maximum Length:255The label of the work zone.
Response
Supported Media Types
- application/schema+json
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : Work Zone
Type:
objectTitle:
Show Source
Work Zone-
keys:
array Keys
Title:
Keys -
organization:
string
Title:
The organization labelMinimum Length:1Maximum Length:255 -
shapes:
array Shapes
Title:
Shapes -
status:
string
Title:
StatusAllowed Values:[ "active", "inactive" ] -
travelArea(required):
string
Title:
Travel AreaAllowed Values:[ "sunrise_enterprise", "New" ] -
workZoneLabel(required):
string
Title:
Work Zone LabelMinimum Length:1Maximum Length:255 -
workZoneName(required):
string
Title:
Work Zone NameMinimum Length:1Maximum Length:255
Nested Schema : Keys
Type:
arrayTitle:
Show Source
Keys-
Array of:
string
Minimum Length:
1Maximum Length:50
Nested Schema : Shapes
Type:
arrayTitle:
Show Source
Shapes-
Array of:
string
Minimum Length:
1Maximum Length:50
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to get a specific work zone by submitting a GET request on the REST resource.
Example of Request Header
The following shows an example of the request header.
GET /rest/ofscMetadata/v1/workZones/{label}Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"workZoneName": "Pleasant Valley",
"workZoneLabel": "PLEASANT_VALLEY",
"status": "active",
"organization": "Sunrise",
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>/rest/ofscMetadata/v1/workZones/CASSELBERRY"
},
{
"rel": "describedby",
"href": "https://<instance_name>/rest/ofscMetadata/v1/metadata-catalog/workZones"
}
]
}