@@ -12,12 +12,13 @@ Records
1212 - [ Records().count] ( #records()count )
1313 - [ Records().delete] ( #records()delete )
1414 - [ Records().get] ( #records()get )
15+ - [ Records().publish] ( #records()publish )
1516 - [ Records().search] ( #records()search )
1617 - [ Records().update] ( #records()update )
1718
1819## Records
1920
20- [ Show source in records.py:14 ] ( ../../../mediahaven/resources/records.py#L14 )
21+ [ Show source in records.py:15 ] ( ../../../mediahaven/resources/records.py#L15 )
2122
2223Public API endpoint of a MediaHaven record.
2324
@@ -35,7 +36,7 @@ class Records(BaseResource):
3536
3637### Records().count
3738
38- [ Show source in records.py:21 ] ( ../../../mediahaven/resources/records.py#L21 )
39+ [ Show source in records.py:22 ] ( ../../../mediahaven/resources/records.py#L22 )
3940
4041Counts the amount the records given a query string.
4142
@@ -56,7 +57,7 @@ def count(self, query: str) -> int:
5657
5758### Records().delete
5859
59- [ Show source in records.py:80 ] ( ../../../mediahaven/resources/records.py#L80 )
60+ [ Show source in records.py:81 ] ( ../../../mediahaven/resources/records.py#L81 )
6061
6162Delete a record.
6263
@@ -76,14 +77,14 @@ def delete(self, record_id: str, reason: str = None, event_type: str = None):
7677
7778### Records().get
7879
79- [ Show source in records.py:35 ] ( ../../../mediahaven/resources/records.py#L35 )
80+ [ Show source in records.py:36 ] ( ../../../mediahaven/resources/records.py#L36 )
8081
8182Get a single record.
8283
8384#### Arguments
8485
8586- ` record_id ` - It can either be a MediaObjectId, FragmentId or RecordId.
86- - ` accept_format ` - The "Accept" request header
87+ - ` accept_format ` - The "Accept" request header.
8788
8889#### Returns
8990
@@ -103,9 +104,28 @@ def get(
103104- [ DEFAULT_ACCEPT_FORMAT] ( ../mediahaven.md#default_accept_format )
104105- [ MediaHavenSingleObject] ( ./base_resource.md#mediahavensingleobject )
105106
107+ ### Records().publish
108+
109+ [ Show source in records.py:121] ( ../../../mediahaven/resources/records.py#L121 )
110+
111+ Publishes a record.
112+
113+ #### Arguments
114+
115+ - ` record_id ` - The ID of the record to publish.
116+ It can be either a MediaObjectId, FragmentId or RecordId.
117+ - ` reason ` - The reason to publish the record.
118+
119+ #### Signature
120+
121+ ``` python
122+ def publish (self , record_id : str , reason : str = None ):
123+ ...
124+ ```
125+
106126### Records().search
107127
108- [ Show source in records.py:53 ] ( ../../../mediahaven/resources/records.py#L53 )
128+ [ Show source in records.py:54 ] ( ../../../mediahaven/resources/records.py#L54 )
109129
110130Search for multiple records.
111131
@@ -116,8 +136,8 @@ Search for multiple records.
116136 - ` query_params["q"] ` - Free text search string.
117137 - ` query_params["startIndex"] ` - Used for pagination of search results,
118138 search results will be returned starting from this index.
119- - ` query_params["nrOfResults"] ` - the number of results that will be returned
120- - ` query_params["publicOnly"] ` - if true exclude from the output dynamic
139+ - ` query_params["nrOfResults"] ` - The number of results that will be returned.
140+ - ` query_params["publicOnly"] ` - If true exclude from the output dynamic
121141 metadata fields which were marked as non public in the Profiles
122142 linked with the record.
123143
@@ -141,7 +161,7 @@ def search(
141161
142162### Records().update
143163
144- [ Show source in records.py:102 ] ( ../../../mediahaven/resources/records.py#L102 )
164+ [ Show source in records.py:103 ] ( ../../../mediahaven/resources/records.py#L103 )
145165
146166Update a record.
147167
0 commit comments