Read Site by ID
๐งพ Read Site by ID
Endpoint: GET /api/v3/sites/{siteId}
Auth Required: โ Yes (Bearer Token)
๐ Description
Retrieves full details of a specific site by its unique ID. Site records include location information, program metadata, and scheduling constraints. Commonly used in visit setup, site management, and reporting tools.
๐ข URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
siteId |
integer/string | โ Yes | Unique identifier of the site. |
๐ Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
languageId |
integer | No | Language ID for localized site fields. |
๐ค Request Example
GET https://api.briefingedge.com/api/v3/sites/1001?languageId=1 Authorization: Bearer <token>
โ Success Response (200 OK)
Returns the full Site
object.
Example:
{ "SiteID": 1001, "Name": "Silicon Valley HQ", "City": "San Jose", "State": "California", "Country": "USA", "IsActive": true, "MaxVisitsPerDay": 10, "AllowWeekendVisits": false }
โ Error Responses
Code | Message | Description |
---|---|---|
401 | Unauthorized | Missing or invalid bearer token. |
404 | Not Found | No site found with the specified ID. |
500 | Internal Server Error | Unexpected server-side failure. |