Skip to main content
GET
/
productions
/
{id}
{
  "id": "<string>",
  "show_id": "<string>",
  "theatre_id": "<string>",
  "opening_date": "<string>",
  "closing_date": "<string>"
}

Overview

Returns detailed information about a single production identified by its unique ID.

Path Parameters

id
string
required
The unique identifier of the production

Request

curl https://entertheatre.com/api/productions/prod-001

Response

id
string
required
Unique identifier for the production
show_id
string
required
ID of the associated show
theatre_id
string
required
ID of the theatre where the production runs
opening_date
string
required
Opening date of the production (ISO 8601 format)
closing_date
string
Closing date of the production (ISO 8601 format), null if open-ended

Example Response

{
  "id": "prod-001",
  "show_id": "550e8400-e29b-41d4-a716-446655440000",
  "theatre_id": "theatre-001",
  "opening_date": "1986-10-09",
  "closing_date": null
}

Error Response

{
  "error": "Production not found"
}

Status Codes

StatusDescription
200Success - returns production object
404Production not found
500Server error