Editing a Syndication

You can edit a syndication at any time; any changes are made within minutes.

To edit a syndication:

  1. Use the syndications route to get information about a syndication. The following example performs a get to obtain the current settings for the asset with the 6b6e72dd71bd4fa ID.
    [GET]/v2/syndications/6b6e72dd71bd4fa
    Note: To get information about all syndications, do not specify the ID in the request.

    Backlot returns a response similar to the following.

    {  
       "name":"My iPhone Feed",
       "include_encodings":[  
    
       ],
       "destination_url":"",
       "require_access_key":false,
       "title":"",
       "include_labels":[  
          "638aed2a18734375b",
          "c42b225963ad481b9"
       ],
       "asset_types":[  
          "video",
          "ad"
       ],
       "syndication_url":"http://api.ooyala.com/syndications/6b6e72dd71bd4fa/feed?pcode=Y4cG06BlqYMLIjPGyv1NbacSK-x3",
       "id":"6b6e72dd71bd4fa",
       "include_all_content":false,
       "type":"iphone",
       "description":""
    }
    Note:

    Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

  2. Make any changes with a PATCH request. The following example changes the name, hosted at URL, and description.
    [PATCH]/v2/syndications/ZnbWVpMjqToT1W{  
       "name":"My Awesome iPhone Feed",
       "description":"My iPhone feed is awesome(2)."
    }

    Backlot returns a response similar to the following.

    {  
       "name":"My Awesome iPhone Feed",
       "include_encodings":[  
    
       ],
       "destination_url":"",
       "require_access_key":false,
       "title":"",
       "include_labels":[  
          "638aed2a18734375b",
          "c42b225963ad481b9"
       ],
       "asset_types":[  
          "video",
          "ad"
       ],
       "syndication_url":"http://api.ooyala.com/syndications/6b6e72dd71bd4fa/feed?pcode=Y4cG06BlqYMLIjPGyv1NbacSK-x3",
       "id":"6b6e72dd71bd4fa",
       "include_all_content":false,
       "type":"iphone",
       "description":"My iPhone feed is awesome(2)."
    }
    Note:

    Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

The syndication is successfully edited.

해당 내용이 도움 되었습니까?