Skip to main content

PUT Podcast

Overview


The following table contains information about the PUT method for managing the process of updating a specific podcast.

PUT Podcast
MethodPUT
URL or Endpoint/api​/v1/projectId/podcasts
HeadersAuthorization
ParametersprojectId
BodyCheck the request body below.

The description of the URL parameter is as follows:

projectId Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

{
"publicId": "string",
"title": "string",
"description": "string",
"link": "string",
"author": "string",
"ownerName": "string",
"ownerEmail": "string",
"thumbnailUrl": "string",
"thumbnailPath": "string",
"copyright": "string",
"languageId": 0,
"explicitOptionId": 0,
"categories": [
{
"id": 0,
"name": "string",
"subcategories": [
{
"name": "string",
"id": 0
}
]
}
]
}

Information about the fields that appear on the request body are displayed in the table below.

Parameter NameMandatoryTypeDescription
publicIdYesstringUnique identifier of the podcast
titleYesstringTitle of the podcast
descriptionNostringDescription of the podcast
linkNostringLink to the podcast
authorNostringAuthor of the podcast
ownerNameNostringName of the owner
ownerEmailNostringEmail of the owner
thumbnailUrlNostringURL of the thumbnail
thumbnailPathNostringPath to the thumbnail
copyrightNostringCopyright information
languageIdNointegerLanguage ID
explicitOptionIdNointegerExplicit content option ID
categoriesNoarray[Object]Categories of the podcast
idNointegerID of the category
nameNostringName of the category
subcategoriesNoarray[Object]Subcategories of the category
nameNostringName of the subcategory
idNointegerID of the subcategory

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{podcastId}",
"title": "{title}",
"description": "{description}",
"link": "{link}",
"author": "{author}",
"ownerName": "{name}",
"ownerEmail": "test@email.com",
"thumbnailUrl": "",
"thumbnailPath": "",
"canEmbed": true,
"copyright": "@test",
"languageId": 1,
"explicitOptionId": 1,
"rssFeedUrl": "https://host.vpplayer.tech/{projectId}/podcast/{podcastId}/rss",
"explicitOption": {
"id": 1,
"name": "True",
"value": "true"
},
"categories": [
{
"id": 1,
"name": "Arts",
"subcategories": [
{
"name": "Books",
"id": 1
}
]
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise, it will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultObjectReturns the response object
publicIdstringUnique identifier of the podcast
titlestringTitle of the podcast
descriptionstringDescription of the podcast
linkstringLink to the podcast
authorstringAuthor of the podcast
ownerNamestringName of the owner
ownerEmailstringEmail of the owner
thumbnailUrlstringURL of the thumbnail
thumbnailPathstringPath to the thumbnail
canEmbedboolIndicates if the podcast can be embedded
copyrightstringCopyright information
languageIdintegerLanguage ID
explicitOptionIdintegerExplicit content option ID
rssFeedUrlstringURL of the RSS feed
explicitOptionObjectExplicit content option details
idintegerID of the explicit content option
namestringName of the explicit content option
valuestringValue of the explicit content option
categoriesarray[Object]Categories of the podcast
idintegerID of the category
namestringName of the category
subcategoriesarray[Object]Subcategories of the category
idintegerID of the subcategory
namestringName of the subcategory
resultInfostringReturns extra information about the result
statusCodeintegerReturns the HTTP Status Code

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed