If you don't find an answer, please click here to post your question.
Reply
Occasional Contributor
Posts: 9
Registered: ‎03-20-2016
Accepted Solution

Request for create report by tag in REST API

Hello,

 

In the rest api, I would like to create report by tag, for example: movie_theavengers. How to do this?

 

Thank you

Paul


Accepted Solutions
Ooyalan
Posts: 44
Registered: ‎10-06-2014

Re: Request for create report by tag in REST API

Hi Paul,

 

If by 'tag' you mean a label, you can try the following call:

 

[GET]/v2/assets?where=labels INCLUDES 'movie_theavengers'

 

If you mean metadata, you can try with this one, where you'll need to replace the [KEY_NAME] with the name of your metadata key:

 

[GET]/v2/assets?where=metadata.[KEY_NAME]='movie_theavengers'&include=metadata

 

You can try these calls in our scratchpad: https://api.ooyala.com/docs/api_scratchpad

 

For more information around Backlot API query construction: http://help.ooyala.com/video-platform/api/query.html

 

Hope this helps!

Ana

View solution in original post


All Replies
Ooyalan
Posts: 44
Registered: ‎10-06-2014

Re: Request for create report by tag in REST API

Hi Paul,

 

If by 'tag' you mean a label, you can try the following call:

 

[GET]/v2/assets?where=labels INCLUDES 'movie_theavengers'

 

If you mean metadata, you can try with this one, where you'll need to replace the [KEY_NAME] with the name of your metadata key:

 

[GET]/v2/assets?where=metadata.[KEY_NAME]='movie_theavengers'&include=metadata

 

You can try these calls in our scratchpad: https://api.ooyala.com/docs/api_scratchpad

 

For more information around Backlot API query construction: http://help.ooyala.com/video-platform/api/query.html

 

Hope this helps!

Ana

Occasional Contributor
Posts: 9
Registered: ‎03-20-2016

Re: Request for create report by tag in REST API

To use Backlot-api , it has a cost?

 

regards,

paul

Ooyalan
Posts: 44
Registered: ‎10-06-2014

Re: Request for create report by tag in REST API

Hi Paul!

 

Nope, as long as your Backlot account is active, you'll be able to use the API without any additional cost.

 

Ana