Get Multiple Clipping Profile Metadata

Retrieves one or more clipping profiles Metadata.

Request

Request syntax:

GET /clipping-profiles/Clipping Profile ID/metadata

Define the following variable when submitting the above request:

VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3).Description
Clipping Profile ID RequiredIdentifies a clipping profile by its system-defined or external ID. Use the Get Multiple Clipping Profiles endpoint to retrieve a list of clipping profiles and their IDs.

Response

A successful request returns a 200 OK response that contains the following properties:

NameData TypeDescription
@idStringIndicates the relative path to the requested endpoint.
@typeStringReturns Collection.
itemsList of dictionariesContains a list of clipping profile configurations.
total_itemsIntegerIndicates the total number of clipping profile configurations.

items list

NameData TypeDescription
@idStringIndicates the relative path to an endpoint that returns this clipping profile configuration.
@typeStringReturns ClippingProfileIntegration.
createdStringIdentifies the date and time (UTC) this integration was create. Syntax: _{YYYY-MM-DDThh:mm:ss.ssssss}Z_Example: 2024-04-04T16:35:46.054Z
lastmodStringIdentifies the date and time (UTC) this integration was create. Syntax: {YYYY-MM-DDThh:mm:ss.ssssss}Z Example: 2024-04-04T16:35:46.054Z
default_valueStringIdentifies the date and time (UTC) this integration was create. Syntax: {YYYY-MM-DDThh:mm:ss.ssssss}Z Example: 2024-04-04T16:35:46.054Z
idStringIdentifies a clipping profile by its system-defined ID
include_free_formStringIndicates if free form is enabled
include_nullStringIndicates if “No Value” option is enabled
input_typeStringIndicates the type that is being used for the metadata
keyStringThe description of this metadata
ownerStringIndicates the system-defined ID for the user that own this clipping profile integration.
profileStringIndicates the system-defined ID representing the clipping profile
valuesList of ListsKey/Value string pair as lists

Sample Request/Response

Call the clipping_profiles_metadata_get_single module (Python 3) to retrieve a clipping profile's metadata. This module imports names from the api_auth module.

Request:

			from pprint import PrettyPrinter
			import requests
			from api_auth import APICredentials, APIParams

			pp = PrettyPrinter().pprint

			class ClippingProfiles:
			"""Class Description"""
			def __init__(self, source_list):
			"""dummy"""
			self.profile_id = None
			self.metadata_id = None

			for key, value in source_list.items():
			setattr(self, key, value)

			self.host = "https://services.uplynk.com"
			self.headers = {"Content-Type": "application/json"}

			def run(self):
			"""dummy"""
			self._get_youtube_login_url()

			def _get_youtube_login_url(self):
			"""dummy"""
			end_point = f"/api/v4/clipping-profiles/{self.profile_id}/metadata/{self.metadata_id}"
			url = f"{self.host}{end_point}"

			query_params = {}

			response = requests.get(
			url,
			params=APIParams(APICredentials()).get_params(query_params),
			headers=self.headers,
			timeout=15
			)

			pp(response.json())

			class_variables = {
			"profile_id": "be1af15490e24399bb6c4f2a36384d66",
			"metadata_id": "704d17c332624569b3a6414a3422fdd1"
			}
			ClippingProfiles(class_variables).run()