Skip to main content

POST Podcast

Overview


The following table contains important information about the POST method for managing the process of creating a podcast.

POST Podcast
MethodPOST
URL or Endpoint/api​/projects​/projectId​/podcasts
BodyCheck the body below

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.

Request Body

{
"title": "string",
"description": "string",
"link": "string",
"author": "string",
"ownerName": "string",
"ownerEmail": "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 response body are displayed in the table below.

Parameter NameMandatoryTypeDescription
titleYesstringThe title of the podcast.
descriptionYesstringA brief description of the podcast.
linkNostringA URL link to the podcast.
authorYesstringThe name of the author of the podcast.
ownerNameYesstringThe name of the owner of the podcast.
ownerEmailYesstringThe email address of the owner.
thumbnailPathNostringThe path to the thumbnail image for the podcast.
copyrightYesstringCopyright information for the podcast.
languageIdYesintegerThe ID representing the language of the podcast.
explicitOptionIdNointegerThe ID indicating if the podcast has explicit material.
categoriesYesarray[Object]A list of categories associated with the podcast.
idYesintegerThe ID of the category.
nameYesstringThe name of the category.
subcategoriesYesarray[Object]A list of subcategories within a category
nameYesstringThe name of the subcategory.
idYesintegerThe ID of the subcategory.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{podcastId}",
"title": "{tite}",
"description": "{description}",
"link": "{link}",
"author": "{author}",
"ownerName": "{ownerName}",
"ownerEmail": "{ownerEmail}",
"thumbnailUrl": "",
"thumbnailPath": "",
"canEmbed": true,
"copyright": "{copyright}",
"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 the backend.
resultobjectReturns the response object containing the detailed result.
publicIdstringThe public identifier for the podcast.
titlestringThe title of the podcast.
descriptionstringA brief description of the podcast.
linkstringA URL link to the podcast.
authorstringThe name of the author of the podcast.
ownerNamestringThe name of the owner of the podcast.
ownerEmailstringThe email address of the owner.
thumbnailUrlstringThe URL to the thumbnail image for the podcast.
thumbnailPathstringThe path to the thumbnail image for the podcast.
canEmbedboolIndicates if the podcast can be embedded.
copyrightstringCopyright information for the podcast.
languageIdintegerThe ID representing the language of the podcast.
explicitOptionIdintegerThe ID indicating if the podcast has explicit material.
rssFeedUrlstringThe URL of the RSS feed for the podcast.
explicitOptionobjectDetails about the explicit podcast option.
idintegerThe ID of the explicit option.
namestringThe name of the explicit option.
valuestringThe value of the explicit option.
categoriesarray[object]A list of categories associated with the podcast
idintegerThe ID of the category.
namestringThe name of the category.
subcategoriesarray[object]A list of subcategories within a category.
namestringThe name of the subcategory.
idintegerThe ID of the subcategory.
resultInfoobjectAdditional information about the result
statusCodeintegerThe HTTP status code of the response.

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