BroadcasterTerritoryRelationshipResource Resource

GET /broadcasterterritoryrelationships

Returns all relationships between broadcasters and territories optionally filtered by one or more available filtering options.

Request Parameters
name type description
broadcasterTerritoryRelationshipIds query a String holding one or more relationship ids (separated by comma) for which corresponding relationships are to be returned.
Response Codes
code condition
200 Zero or more relationships were returned.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) zero or more SerialBroadcaster.

Example

Request
GET /broadcasterterritoryrelationships
Content-Type: */*
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

POST /broadcasterterritoryrelationships

Creates a relationship between a broadcaster and a territory.. Regardless of the provided state of the fields id and updated, these fields will be automatically populated upon creation.

Request Body
media type data type description
application/xml MTBroadcasterTerritoryRelationship (XML) the SerialBroadcasterTerritoryRelationship which is to be created.
Response Codes
code condition
200 The relationship was created.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the created SerialBroadcasterTerritoryRelationship.

Example

Request
POST /broadcasterterritoryrelationships
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
<broadcasterTerritoryRelationship>
  <broadcaster>
    <name>...</name>
    <territoryRelationships>
      <territoryRelationship/>
    </territoryRelationships>
    <id>...</id>
    <updated>...</updated>
  </broadcaster>
  <territory>
    <code>...</code>
    <country>...</country>
    <name>...</name>
    <weight>...</weight>
    <id>...</id>
    <updated>...</updated>
  </territory>
  <id>...</id>
  <updated>...</updated>
</broadcasterTerritoryRelationship>

                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

DELETE /broadcasterterritoryrelationships/{broadcasterTerritoryRelationshipId}

Deletes a relationship between a broadcaster and a territory.

Request Parameters
name type description
broadcasterTerritoryRelationshipId path a String holding an id which represents the relationship which is to be deleted.
Response Codes
code condition
204 The relationship was deleted.
404 The relationship does not exist.
500 An error occured.

Example

Request
DELETE /broadcasterterritoryrelationships/{broadcasterTerritoryRelationshipId}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

PUT /broadcasterterritoryrelationships/{broadcasterTerritoryRelationshipId}

Updates a relationship between a broadcaster and a territory.

Request Parameters
name type description
broadcasterTerritoryRelationshipId path a String holding an id which represents the relationship which is to be updated.
Request Body
media type data type description
application/xml MTBroadcasterTerritoryRelationship (XML) the SerialBroadcasterTerritoryRelationship which is to be updated.
Response Codes
code condition
200 The relationship was updated.
400 The resource ID does not match the payload ID.
404 The relationship does not exist.
409 The relationship has been updated or deleted by another process.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the updated SerialBroadcasterTerritoryRelationship.

Example

Request
PUT /broadcasterterritoryrelationships/{broadcasterTerritoryRelationshipId}
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
<broadcasterTerritoryRelationship>
  <broadcaster>
    <name>...</name>
    <territoryRelationships>
      <territoryRelationship/>
    </territoryRelationships>
    <id>...</id>
    <updated>...</updated>
  </broadcaster>
  <territory>
    <code>...</code>
    <country>...</country>
    <name>...</name>
    <weight>...</weight>
    <id>...</id>
    <updated>...</updated>
  </territory>
  <id>...</id>
  <updated>...</updated>
</broadcasterTerritoryRelationship>

                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...